fix(core): update
This commit is contained in:
@ -9,6 +9,17 @@ export const elementBasicSetup = async () => {
|
||||
await globalThis.deesCssToolsReady.promise;
|
||||
} else {
|
||||
globalThis.deesCssToolsReady = defer();
|
||||
const documentReady = defer();
|
||||
document.onreadystatechange = () => {
|
||||
if (document.readyState === 'interactive') {
|
||||
documentReady.resolve();
|
||||
}
|
||||
};
|
||||
await documentReady.promise;
|
||||
const head = document.querySelector('head');
|
||||
const styleElement = document.createElement('style');
|
||||
styleElement.type = 'text/css';
|
||||
styleElement.appendChild(document.createTextNode(materialFontCss));
|
||||
globalThis.deesCssToolsReady.resolve();
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user