Fix error messages.

This commit is contained in:
John Livingston 2024-04-04 17:02:21 +02:00
parent 33bc346e83
commit 64f9ff752a
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
2 changed files with 5 additions and 1 deletions

View File

@ -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 {

View File

@ -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)