fix(core): update

This commit is contained in:
Philipp Kunz 2022-01-06 22:08:08 +01:00
parent 45b2183c88
commit d607968dfb

View File

@ -22,10 +22,9 @@ 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'));
} }