Merge main into dev, fix search bar BS

This commit is contained in:
MotorTruck1221 2025-06-08 21:15:23 -06:00
parent 64425cf9ff
commit 9a886e6309
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4
2 changed files with 5 additions and 4 deletions

View file

@ -62,7 +62,6 @@ const link = Astro.url.searchParams.get("redir");
if (event.key === "Enter") {
const sw = SW.getInstance().next().value!;
const settings = await Settings.getInstance();
await sw.setTransport();
iframe.classList.remove("hidden");
iframe.src = sw.encodeURL(input.value);
}
@ -123,9 +122,11 @@ const link = Astro.url.searchParams.get("redir");
history.pushState({}, "", "/");
})();
}
(async () => { await init(); })();
}
}
customElements.define('link-element', CustomComponent);
document.addEventListener("astro:page-load", async () => {
await init();
});
</script>