fix(core): update
This commit is contained in:
parent
4d4dd59b9b
commit
240e34b7d0
@ -1,6 +1,6 @@
|
|||||||
import { CSSResult } from 'lit-element';
|
import { CSSResult } from 'lit-element';
|
||||||
import * as plugins from './dees-element.plugins';
|
import * as plugins from './dees-element.plugins';
|
||||||
import * as domtools from
|
import * as domtools from '@designestate/dees-domtools';
|
||||||
|
|
||||||
export interface IDbVarTriplet {
|
export interface IDbVarTriplet {
|
||||||
cssVarName: string;
|
cssVarName: string;
|
||||||
@ -23,7 +23,7 @@ export class CssManager {
|
|||||||
}
|
}
|
||||||
this.dbVarTripletStore.push(newTriplet)
|
this.dbVarTripletStore.push(newTriplet)
|
||||||
document.onreadystatechange = () => {
|
document.onreadystatechange = () => {
|
||||||
document.body.style.setProperty(newTriplet.cssVarName, newTriplet.darkValue);
|
document.body?.style?.setProperty(newTriplet.cssVarName, newTriplet.darkValue);
|
||||||
}
|
}
|
||||||
return plugins.litElement.unsafeCSS(newTriplet.cssVarName);
|
return plugins.litElement.unsafeCSS(newTriplet.cssVarName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user