Fix.
This commit is contained in:
parent
f927af4d91
commit
a216805eef
@ -72,8 +72,8 @@ function displayChatButtons (peertubeHelpers, uuid) {
|
|||||||
displayButton(buttons, 'close', labelClose, () => closeChat())
|
displayButton(buttons, 'close', labelClose, () => closeChat())
|
||||||
|
|
||||||
toggleShowHideButtons(null)
|
toggleShowHideButtons(null)
|
||||||
|
resolve()
|
||||||
})
|
})
|
||||||
resolve()
|
|
||||||
})
|
})
|
||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
@ -81,10 +81,10 @@ function displayChatButtons (peertubeHelpers, uuid) {
|
|||||||
function toggleShowHideButtons (chatOpened) {
|
function toggleShowHideButtons (chatOpened) {
|
||||||
// showing/hiding buttons...
|
// showing/hiding buttons...
|
||||||
document.querySelectorAll('.peertube-plugin-livechat-button-open')
|
document.querySelectorAll('.peertube-plugin-livechat-button-open')
|
||||||
.forEach(button => button.style.display = (chatOpened === false || chatOpened === null ? 'none' : ''))
|
.forEach(button => button.style.display = (chatOpened === true || chatOpened === null ? 'none' : ''))
|
||||||
|
|
||||||
document.querySelectorAll('.peertube-plugin-livechat-button-close')
|
document.querySelectorAll('.peertube-plugin-livechat-button-close')
|
||||||
.forEach(button => button.style.display = (chatOpened === true || chatOpened === null ? 'none' : ''))
|
.forEach(button => button.style.display = (chatOpened === false || chatOpened === null ? 'none' : ''))
|
||||||
}
|
}
|
||||||
|
|
||||||
function openChat () {
|
function openChat () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user