Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 23f8297333 |
+93
-1
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 5.1 KiB |
@@ -174,7 +174,7 @@ function doReboot() {
|
|||||||
if ($rebootOverlay) $rebootOverlay.classList.add("visible");
|
if ($rebootOverlay) $rebootOverlay.classList.add("visible");
|
||||||
_rebootStartTime = Date.now();
|
_rebootStartTime = Date.now();
|
||||||
_serverWentDown = false;
|
_serverWentDown = false;
|
||||||
apiFetch("/api/reboot", { method: "POST" }).catch(function() {});
|
fetch("/api/reboot", { method: "POST" }).catch(function() {});
|
||||||
// Wait 15 seconds before the first check — give the system time to actually shut down
|
// Wait 15 seconds before the first check — give the system time to actually shut down
|
||||||
setTimeout(waitForServerReboot, 15000);
|
setTimeout(waitForServerReboot, 15000);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user