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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,9 +23,10 @@ export default function DialogRestart({ show, setShow }) {
while (true) { while (true) {
try { try {
const response = await fetch('/api/config', { method: 'GET' }); const response = await fetch('/api/config', { method: 'GET' });
if (await response.status === 200) if (await response.status === 200) {
window.location.reload(); window.location.reload();
} }
}
catch (e) {} catch (e) {}
await delay(987); await delay(987);
} }