Remove unused file

This commit is contained in:
Nikita Karamov 2023-08-26 16:46:35 +02:00
parent 9dc393e529
commit 08c71218b2
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD

View file

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