Commit 51862d29 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

Merge branch 'custom-css' into 'master'

update: use custom css

See merge request !12
parents 97681d6b fc275673
Pipeline #5073 passed with stage
in 28 seconds
This diff is collapsed.
......@@ -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(
'https://unpkg.com/converse.js@4.2/css/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