Commit fc275673 authored by Pierre de Lacroix's avatar Pierre de Lacroix

patch: remove use of baseURL

parent 4cfe9737
Pipeline #5071 passed with stage
in 28 seconds
......@@ -12,8 +12,6 @@ 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 = 'https://unpkg.com/@startinblox/component-chat';
export class ConversePlugin {
changeChat(jid, is_groupchat = false, root) {
if (!jid) {
......@@ -44,8 +42,8 @@ export const ChatWindow = {
this.element.attachShadow({ mode: 'open' });
this.element.shadowRoot.append(
...Helpers.importCSS(
`${baseURL}/dist/converse.css`,
`${baseURL}/converse-embed.css`,
`https://unpkg.com/@startinblox/component-chat/dist/converse.css`,
`https://unpkg.com/@startinblox/component-chat/converse-embed.css`,
),
);
// Dirty fix. @see https://stackoverflow.com/questions/33696169/chrome-extension-font-awesome-wont-display-in-shadow-root
......
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