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