Merge pull request #229 from naturallaw777/copilot/fix-reboot-issue-fetch-call

fix: use apiFetch in doReboot() to send session credentials with reboot request
This commit is contained in:
Sovran_Systems
2026-04-13 18:17:47 -05:00
committed by GitHub

View File

@@ -174,7 +174,7 @@ function doReboot() {
if ($rebootOverlay) $rebootOverlay.classList.add("visible");
_rebootStartTime = Date.now();
_serverWentDown = false;
fetch("/api/reboot", { method: "POST" }).catch(function() {});
apiFetch("/api/reboot", { method: "POST" }).catch(function() {});
// Wait 15 seconds before the first check — give the system time to actually shut down
setTimeout(waitForServerReboot, 15000);
}