[🐛] Fixed FlowOS filesystem at boot

This commit is contained in:
ThinLiquid 2023-12-13 16:26:33 +00:00 committed by GitHub
parent 5ae31ef898
commit 9bb2cee77f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

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

View file

@ -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()
} }
}) })
}) })