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,11 +22,10 @@ export class DeesElement extends plugins.lit.LitElement {
public async connectedCallback() {
super.connectedCallback();
this.domtoolsPromise.then(async (domtools) => {
this.themeSubscription = domtools.themeManager.themeObservable.subscribe((goBrightArg) => {
this.goBright = goBrightArg;
});
});
const domtools = await this.domtoolsPromise;
this.themeSubscription = domtools.themeManager.themeObservable.subscribe((goBrightArg) => {
this.goBright = goBrightArg;
});
this.dispatchEvent(new CustomEvent('deesElementConnected'));
}