[🐛] Fixed FlowOS filesystem at boot
This commit is contained in:
parent
5ae31ef898
commit
9bb2cee77f
2 changed files with 1 additions and 2 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
<link rel="shortcut icon" href="./src/assets/flow.png" type="image/png">
|
<link rel="shortcut icon" href="./src/assets/flow.png" type="image/png">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script src="https://unpkg.com/filer"></script>
|
<script src="https://cdn.jsdelivr.net/npm/filer"></script>
|
||||||
<script src="./src/index.ts" type="module"></script>
|
<script src="./src/index.ts" type="module"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,6 @@ window.wm = new WindowManager();
|
||||||
window.fs.exists('/.config/flow.json', (exists) => {
|
window.fs.exists('/.config/flow.json', (exists) => {
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
window.fs.promises.writeFile('/.config/flow.json', JSON.stringify(defaultConfig)).then(null).catch(e => console.error)
|
window.fs.promises.writeFile('/.config/flow.json', JSON.stringify(defaultConfig)).then(null).catch(e => console.error)
|
||||||
window.location.reload()
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue