more fixes
This commit is contained in:
parent
ca6385bfcb
commit
c7d060ab38
1 changed files with 7 additions and 2 deletions
|
@ -156,7 +156,7 @@ console.warn(datalist);
|
||||||
const instancefetch = fetch("/instances.json")
|
const instancefetch = fetch("/instances.json")
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then(
|
.then(
|
||||||
(
|
async (
|
||||||
json: {
|
json: {
|
||||||
name: string;
|
name: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
|
@ -175,6 +175,7 @@ const instancefetch = fetch("/instances.json")
|
||||||
};
|
};
|
||||||
}[],
|
}[],
|
||||||
) => {
|
) => {
|
||||||
|
await I18n.done;
|
||||||
instances = json;
|
instances = json;
|
||||||
if (datalist) {
|
if (datalist) {
|
||||||
console.warn(json);
|
console.warn(json);
|
||||||
|
@ -206,7 +207,11 @@ const instancefetch = fetch("/instances.json")
|
||||||
}
|
}
|
||||||
datalist.append(option);
|
datalist.append(option);
|
||||||
}
|
}
|
||||||
if (json.length !== 0 && !localStorage.getItem("instanceinfo")) {
|
if (
|
||||||
|
json.length !== 0 &&
|
||||||
|
!localStorage.getItem("instanceinfo") &&
|
||||||
|
!new URLSearchParams(window.location.search).get("instance")
|
||||||
|
) {
|
||||||
checkInstance(json[0].name);
|
checkInstance(json[0].name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue