fix(core): update

This commit is contained in:
2020-09-12 13:11:10 +00:00
parent 537902aa53
commit 73552ad80f
2 changed files with 32 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import { TViewport } from './domtools.breakpoints';
import { Scroller } from './domtools.classes.scroller';
import { delayForRandom } from '@pushrocks/smartdelay';
import { setupGlobalTheme } from './domtools.css.theme';
export interface IDomToolsState {
virtualViewport: TViewport;
@ -22,6 +23,10 @@ export class DomTools {
if (!globalThis.deesDomTools) {
globalThis.deesDomTools = new DomTools();
domToolsInstance = globalThis.deesDomTools;
// lets setup theming
setupGlobalTheme(domToolsInstance);
// lets make sure the dom is ready
const readyStateChangedFunc = () => {
if (document.readyState === 'interactive' || document.readyState === 'complete') {