[🚑] Removed top-level awaits

This commit is contained in:
ThinLiquid 2023-10-18 02:02:28 +01:00
parent dc0ea07226
commit 1b9595b923
No known key found for this signature in database
GPG key ID: D5085759953E6CAA

View file

@ -29,8 +29,9 @@ if (params.get('debug') !== null && params.get('debug') !== undefined) {
window.preloader = new Preloader() window.preloader = new Preloader()
window.statusBar = new StatusBar() window.statusBar = new StatusBar()
window.wm = new WM() window.wm = new WM();
(async function () {
window.preloader.setPending('filesystem') window.preloader.setPending('filesystem')
window.fs = new (window as any).Filer.FileSystem() window.fs = new (window as any).Filer.FileSystem()
await window.preloader.setDone('filesystem') await window.preloader.setDone('filesystem')
@ -40,3 +41,4 @@ await window.wm.init()
window.preloader.setStatus('') window.preloader.setStatus('')
window.preloader.finish() window.preloader.finish()
})().catch(e => console.error)