fix: use apiFetch instead of fetch in doReboot() to include session credentials
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/34f637cc-b8b9-42e1-bdeb-e4b252fae648 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
32b2ee7117
commit
068c78bd27
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user