Remove unused file
This commit is contained in:
parent
9dc393e529
commit
08c71218b2
1 changed files with 0 additions and 18 deletions
|
@ -1,18 +0,0 @@
|
||||||
const instanceList = document.querySelector(
|
|
||||||
"#instance-list",
|
|
||||||
) as HTMLDataListElement;
|
|
||||||
|
|
||||||
/** @type {Array<string>} */
|
|
||||||
let instances = [];
|
|
||||||
try {
|
|
||||||
const response = await fetch("/api/instances");
|
|
||||||
instances = await response.json();
|
|
||||||
} catch (error) {
|
|
||||||
console.error("Could not fetch instances:", error);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const instaneDomain of instances) {
|
|
||||||
const $option = document.createElement("option");
|
|
||||||
$option.value = instaneDomain;
|
|
||||||
instanceList.append($option);
|
|
||||||
}
|
|
Reference in a new issue