mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
append app-main after style
This commit is contained in:
@@ -13,12 +13,18 @@ import style from 'styles/main.scss';
|
||||
|
||||
connectedCallback() {
|
||||
const _root = _shadow.get(this);
|
||||
const _appMain = document.createElement('app-main');
|
||||
const _style = document.createElement('style');
|
||||
_style.innerHTML = style;
|
||||
|
||||
_root.appendChild(_style);
|
||||
if ('requestAnimationFrame' in window) {
|
||||
window.requestAnimationFrame(() => {
|
||||
const _appMain = document.createElement('app-main');
|
||||
_root.appendChild(_appMain);
|
||||
});
|
||||
} else {
|
||||
const _appMain = document.createElement('app-main');
|
||||
_root.appendChild(_appMain);
|
||||
}
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user