fix build macos
This commit is contained in:
@@ -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
BIN
client/build/.DS_Store
vendored
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user