login fix

This commit is contained in:
MathMan05 2025-01-12 00:25:59 -06:00
parent 78ab775aba
commit ca6385bfcb

View file

@ -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};