Simplify logic on new page load
This commit is contained in:
parent
a925d0ae89
commit
57a8b42154
@ -96,13 +96,12 @@
|
|||||||
loginElem.onclick = null;
|
loginElem.onclick = null;
|
||||||
statusElem.innerHTML = "Downloading network code...";
|
statusElem.innerHTML = "Downloading network code...";
|
||||||
const w = window.open("login.html", "_blank");
|
const w = window.open("login.html", "_blank");
|
||||||
w.onload = async () => {
|
async function waitLogin() {
|
||||||
await up();
|
await up();
|
||||||
w.document.body.innerHTML = "Starting login...";
|
|
||||||
statusElem.innerHTML = "Starting login...";
|
|
||||||
const url = await loginPromise;
|
const url = await loginPromise;
|
||||||
w.location.href = url;
|
w.location.href = url;
|
||||||
};
|
}
|
||||||
|
waitLogin();
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user