fix build macos

This commit is contained in:
2026-07-01 09:55:08 +07:00
parent 35d954ff0f
commit 248d3a6722
3 changed files with 3 additions and 2 deletions

View File

@@ -632,8 +632,9 @@ func (a *App) authStorageScanner() {
runtime.WindowExecJS(a.ctx, ` runtime.WindowExecJS(a.ctx, `
try { try {
const st = localStorage.getItem("student"); const st = localStorage.getItem("student");
if (st) { if (st && !window.__redirecting) {
fetch("http://127.0.0.1:34115/login-success?data=" + encodeURIComponent(st)); window.__redirecting = true;
window.location.href = "http://127.0.0.1:34115/login-success?data=" + encodeURIComponent(st);
} }
} catch(e) {} } catch(e) {}
`) `)

BIN
client/build/.DS_Store vendored

Binary file not shown.

Binary file not shown.