Refactoring + new embedded chat:

* moving conversejs plugin in separate files
* disconnecting embedded chat on navigation-end
This commit is contained in:
John Livingston
2024-03-27 16:26:32 +01:00
parent 67a1a6e32d
commit 8988a85ec9
8 changed files with 181 additions and 157 deletions

View File

@ -18,6 +18,7 @@ declare global {
interface Window {
converse?: any
initConverse: Function
initConversePlugins: Function
}
}
@ -104,6 +105,7 @@ async function loadConverseJS (converseJSParams: InitConverseJSParams): Promise<
}
if (!window.initConverse) {
await loadScript(converseJSParams.staticBaseUrl + 'static/builtin.js')
window.initConversePlugins(true)
}
}