fix build macos
This commit is contained in:
@@ -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) {}
|
||||
`)
|
||||
|
||||
Reference in New Issue
Block a user