login fix
This commit is contained in:
parent
78ab775aba
commit
ca6385bfcb
1 changed files with 11 additions and 10 deletions
|
@ -67,6 +67,17 @@ const instancein = document.getElementById("instancein") as HTMLInputElement;
|
||||||
let timeout: ReturnType<typeof setTimeout> | string | number | undefined | null = null;
|
let timeout: ReturnType<typeof setTimeout> | string | number | undefined | null = null;
|
||||||
// let instanceinfo;
|
// let instanceinfo;
|
||||||
|
|
||||||
|
const switchurl = document.getElementById("switch") as HTMLAreaElement;
|
||||||
|
if (switchurl) {
|
||||||
|
switchurl.href += window.location.search;
|
||||||
|
const instance = new URLSearchParams(window.location.search).get("instance");
|
||||||
|
console.log(instance);
|
||||||
|
if (instance) {
|
||||||
|
instancein.value = instance;
|
||||||
|
//checkInstance(instance);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (instancein) {
|
if (instancein) {
|
||||||
console.log(instancein);
|
console.log(instancein);
|
||||||
instancein.addEventListener("keydown", () => {
|
instancein.addEventListener("keydown", () => {
|
||||||
|
@ -215,16 +226,6 @@ if (!localStorage.getItem("SWMode")) {
|
||||||
localStorage.setItem("SWMode", "true");
|
localStorage.setItem("SWMode", "true");
|
||||||
}
|
}
|
||||||
|
|
||||||
const switchurl = document.getElementById("switch") as HTMLAreaElement;
|
|
||||||
if (switchurl) {
|
|
||||||
switchurl.href += window.location.search;
|
|
||||||
const instance = new URLSearchParams(window.location.search).get("instance");
|
|
||||||
console.log(instance);
|
|
||||||
if (instance) {
|
|
||||||
instancein.value = instance;
|
|
||||||
//checkInstance("");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
trimswitcher();
|
trimswitcher();
|
||||||
|
|
||||||
export {adduser};
|
export {adduser};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue