mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 01:05:20 +03:00
Improve restart from UI
This commit is contained in:
parent
408a586240
commit
e06532d7e7
@ -23,8 +23,9 @@ 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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user