Merge main into dev, fix search bar BS
This commit is contained in:
parent
64425cf9ff
commit
9a886e6309
2 changed files with 5 additions and 4 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
settings.proxy();
|
settings.proxy();
|
||||||
await sw.wispServer();
|
await sw.wispServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
init();
|
init();
|
||||||
document.addEventListener('astro:after-swap', async () => {
|
document.addEventListener('astro:after-swap', async () => {
|
||||||
//const settings = await Settings.getInstance();
|
//const settings = await Settings.getInstance();
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,6 @@ const link = Astro.url.searchParams.get("redir");
|
||||||
if (event.key === "Enter") {
|
if (event.key === "Enter") {
|
||||||
const sw = SW.getInstance().next().value!;
|
const sw = SW.getInstance().next().value!;
|
||||||
const settings = await Settings.getInstance();
|
const settings = await Settings.getInstance();
|
||||||
await sw.setTransport();
|
|
||||||
iframe.classList.remove("hidden");
|
iframe.classList.remove("hidden");
|
||||||
iframe.src = sw.encodeURL(input.value);
|
iframe.src = sw.encodeURL(input.value);
|
||||||
}
|
}
|
||||||
|
|
@ -123,9 +122,11 @@ const link = Astro.url.searchParams.get("redir");
|
||||||
history.pushState({}, "", "/");
|
history.pushState({}, "", "/");
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
(async () => { await init(); })();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
customElements.define('link-element', CustomComponent);
|
customElements.define('link-element', CustomComponent);
|
||||||
|
document.addEventListener("astro:page-load", async () => {
|
||||||
|
await init();
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue