Commit d0ba1734 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

fix: baseURL to flat

parent cd486baa
Pipeline #4696 passed with stage
in 28 seconds
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment