debug _converse on dev env

This commit is contained in:
John Livingston 2024-03-28 11:16:33 +01:00
parent 8988a85ec9
commit 1ba1e08d69
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC

View File

@ -14,6 +14,11 @@ export const livechatSpecificsPlugin = {
_converse.api.user.logout()
window.converse.livechatDisconnect = undefined // will be set again on next initialize.
}
if (window.location.protocol === 'http:') {
// We are probably on a dev instance, so we will add _converse in window:
(window as any)._livechatConverse = _converse
}
},
overrides: {
ChatRoom: {