...
 
Commits (1)
......@@ -12,7 +12,7 @@ import { StoreMixin } from 'https://unpkg.com/@startinblox/core@0.8/dist/mixins/
// const currentURL = import.meta.url;
const currentURL = (new Error()).stack.toString().match(/[a-z]+:[^:]+/)[0];
const baseURL = currentURL.replace(/\/[^\/]*$/, '');
const baseURL = 'https://unpkg.com/@startinblox/component-chat';
export class ConversePlugin {
changeChat(jid, is_groupchat = false, root) {
......@@ -98,7 +98,7 @@ export const ChatWindow = {
const idToken = await document.querySelector('sib-auth').getUserIdToken();
await converse.initialize({
debug: this.element.dataset.debug === 'true',
debug: true,
root: this.element.shadowRoot,
authentication: this.element.dataset.authentication,
auto_reconnect: true,
......