fix(core): update
This commit is contained in:
parent
45b2183c88
commit
d607968dfb
@ -22,11 +22,10 @@ export class DeesElement extends plugins.lit.LitElement {
|
|||||||
|
|
||||||
public async connectedCallback() {
|
public async connectedCallback() {
|
||||||
super.connectedCallback();
|
super.connectedCallback();
|
||||||
this.domtoolsPromise.then(async (domtools) => {
|
const domtools = await this.domtoolsPromise;
|
||||||
this.themeSubscription = domtools.themeManager.themeObservable.subscribe((goBrightArg) => {
|
this.themeSubscription = domtools.themeManager.themeObservable.subscribe((goBrightArg) => {
|
||||||
this.goBright = goBrightArg;
|
this.goBright = goBrightArg;
|
||||||
});
|
});
|
||||||
});
|
|
||||||
this.dispatchEvent(new CustomEvent('deesElementConnected'));
|
this.dispatchEvent(new CustomEvent('deesElementConnected'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user