Improve restart from UI

This commit is contained in:
ElMoribond
2021-07-14 17:45:37 +02:00
committed by GitHub
parent 408a586240
commit e06532d7e7
+2 -1
View File
@@ -23,9 +23,10 @@ export default function DialogRestart({ show, setShow }) {
while (true) {
try {
const response = await fetch('/api/config', { method: 'GET' });
if (await response.status === 200)
if (await response.status === 200) {
window.location.reload();
}
}
catch (e) {}
await delay(987);
}