feat: desktop compatibility, beta 1

This commit is contained in:
Mo
2022-02-03 09:02:09 -06:00
parent 333d4c4808
commit 0f01d296e4
4 changed files with 33 additions and 6 deletions

View File

@@ -59,12 +59,22 @@ const startApplication: StartApplication = async function startApplication(
});
}
window.addEventListener('DOMContentLoaded', () => {
const renderApp = () => {
render(
<ApplicationGroupView mainApplicationGroup={mainApplicationGroup} />,
document.body.appendChild(document.createElement('div'))
);
});
};
const domReady =
document.readyState === 'complete' || document.readyState === 'interactive';
if (domReady) {
renderApp();
} else {
window.addEventListener('DOMContentLoaded', () => {
renderApp();
});
}
};
if (IsWebPlatform) {