From 946cb23a03e72ac215c52938aa653438301aa312 Mon Sep 17 00:00:00 2001 From: ThinLiquid Date: Fri, 24 Nov 2023 14:45:15 +0000 Subject: [PATCH] =?UTF-8?q?[=F0=9F=90=9B]=20Fixed=20boot=20sequence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 705ce22..769b889 100644 --- a/src/index.ts +++ b/src/index.ts @@ -53,9 +53,11 @@ window.wm = new WindowManager(); window.fs.exists('/.config/flow.json', (exists) => { if (!exists) { window.fs.promises.writeFile('/.config/flow.json', JSON.stringify(defaultConfig)).then(null).catch(e => console.error) + window.location.reload() } }) }) + /** * Gets the current FlowOS config. * @@ -73,8 +75,6 @@ window.wm = new WindowManager(); }) } - console.log(await window.config()) - navigator.serviceWorker.register('/uv-sw.js?config=' + encodeURIComponent((await window.config()).SERVER_URL), { scope: '/service/' }).catch(e => console.error(e))