diff --git a/client/app.go b/client/app.go index 9e1d816..35e05ca 100644 --- a/client/app.go +++ b/client/app.go @@ -632,8 +632,9 @@ func (a *App) authStorageScanner() { runtime.WindowExecJS(a.ctx, ` try { const st = localStorage.getItem("student"); - if (st) { - fetch("http://127.0.0.1:34115/login-success?data=" + encodeURIComponent(st)); + if (st && !window.__redirecting) { + window.__redirecting = true; + window.location.href = "http://127.0.0.1:34115/login-success?data=" + encodeURIComponent(st); } } catch(e) {} `) diff --git a/client/build/.DS_Store b/client/build/.DS_Store index 1b66d3d..d680716 100644 Binary files a/client/build/.DS_Store and b/client/build/.DS_Store differ diff --git a/client/test_build b/client/test_build deleted file mode 100755 index 290e85c..0000000 Binary files a/client/test_build and /dev/null differ