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))