Fix error messages.
This commit is contained in:
parent
33bc346e83
commit
64f9ff752a
@ -160,7 +160,7 @@ async function displayConverseJS (
|
||||
const converseJSParams: InitConverseJSParams = await (response).json()
|
||||
|
||||
await loadConverseJS(converseJSParams)
|
||||
window.initConverse(converseJSParams, chatIncludeMode, authHeader ?? null)
|
||||
await window.initConverse(converseJSParams, chatIncludeMode, authHeader ?? null)
|
||||
}
|
||||
|
||||
export {
|
||||
|
@ -220,6 +220,10 @@ function register (registerOptions: RegisterClientOptions): void {
|
||||
message.classList.add('peertube-plugin-livechat-error-message')
|
||||
message.innerText = await peertubeHelpers.translate(LOC_CHATROOM_NOT_ACCESSIBLE)
|
||||
container.append(message)
|
||||
|
||||
container.querySelectorAll(
|
||||
'.livechat-spinner, converse-root'
|
||||
).forEach(dom => dom.remove())
|
||||
}
|
||||
|
||||
hackStyles(false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user