Merge pull request #69 from Flow-Works:68-flowos-not-booting-first-try
[🐛] Fixed boot sequence
This commit is contained in:
commit
4a9aad5005
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue