diff --git a/src/scripts/fetch-instances.ts b/src/scripts/fetch-instances.ts deleted file mode 100644 index 380ce7f..0000000 --- a/src/scripts/fetch-instances.ts +++ /dev/null @@ -1,18 +0,0 @@ -const instanceList = document.querySelector( - "#instance-list", -) as HTMLDataListElement; - -/** @type {Array} */ -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); -}