fix(core): update
This commit is contained in:
parent
b6fc6b4f31
commit
746ebe1490
@ -1,5 +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
|
||||||
|
|
||||||
export interface IDbVarTriplet {
|
export interface IDbVarTriplet {
|
||||||
cssVarName: string;
|
cssVarName: string;
|
||||||
@ -21,7 +22,9 @@ export class CssManager {
|
|||||||
darkValue: darkValueArg
|
darkValue: darkValueArg
|
||||||
}
|
}
|
||||||
this.dbVarTripletStore.push(newTriplet)
|
this.dbVarTripletStore.push(newTriplet)
|
||||||
|
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