From b38dcc09aa2faff4cc7d1aae745600b8a7636e0d Mon Sep 17 00:00:00 2001 From: MotorTruck1221 Date: Sun, 29 Sep 2024 00:40:30 -0600 Subject: [PATCH] Fix: perf being shit --- src/pages/[lang]/index.astro | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index 55ef648..03b0a7f 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -59,6 +59,7 @@ const t = useTranslations(lang); const omnibox = document.getElementById("omnibox") as HTMLDivElement; let epoxyClientOptions: any = null; let epoxyClient: any = null; + await initEpoxy(); //This ONLY runs once input?.addEventListener("keypress", function (event: any) { if (event.key === "Enter") { initSw().then(() => { @@ -68,15 +69,12 @@ const t = useTranslations(lang); } }) input?.addEventListener("input", async function() { - console.log("EA"); - await initEpoxy(); //This ONLY runs once if (!epoxyClient) { console.debug("Creating epoxy client"); epoxyClientOptions = new EpoxyClientOptions(); epoxyClient = new EpoxyClient(wispUrl, epoxyClientOptions); } const value = input?.value; - console.log(value); input.classList.remove("rounded-b-2xl"); omnibox.classList.remove("hidden"); if (value.length === 0) {