diff --git a/package.json b/package.json index 4557240..4ad2e49 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@fastify/static": "^7.0.4", "@iconify-json/ph": "^1.2.0", "@mercuryworkshop/bare-mux": "1.1.1", - "@mercuryworkshop/epoxy-transport": "^2.1.13", + "@mercuryworkshop/epoxy-transport": "github:motortruck1221/epoxytransport", "@mercuryworkshop/libcurl-transport": "^1.3.10", "@rubynetwork/rammerhead": "^1.3.5", "@rubynetwork/rammerhead-browser": "^1.0.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7bfd3d5..26fef65 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,8 +33,8 @@ importers: specifier: 1.1.1 version: 1.1.1 '@mercuryworkshop/epoxy-transport': - specifier: ^2.1.13 - version: 2.1.13 + specifier: github:motortruck1221/epoxytransport + version: https://codeload.github.com/motortruck1221/epoxytransport/tar.gz/5e8205cdfef67e1cf73fbba7fb56cb181de070f7 '@mercuryworkshop/libcurl-transport': specifier: ^1.3.10 version: 1.3.10(typescript@5.6.2) @@ -677,8 +677,9 @@ packages: '@mercuryworkshop/epoxy-tls@2.1.6-1': resolution: {integrity: sha512-drnffDo9Ls73Fpmcup2Ys1z+BjzK+WLnzyfS4APFfWr9cJ0gu7567tx4M06XH5PUZMOS1J1Z3wqnRaBh/RX5bQ==} - '@mercuryworkshop/epoxy-transport@2.1.13': - resolution: {integrity: sha512-2F3B+QCuuLSbi0449Xn31VdyrTzRcAlA6z4OLEVGNs9bi4HfTkFVKryarcts55euCZuVVGH7XtLqTXJUn0MX0g==} + '@mercuryworkshop/epoxy-transport@https://codeload.github.com/motortruck1221/epoxytransport/tar.gz/5e8205cdfef67e1cf73fbba7fb56cb181de070f7': + resolution: {tarball: https://codeload.github.com/motortruck1221/epoxytransport/tar.gz/5e8205cdfef67e1cf73fbba7fb56cb181de070f7} + version: 2.1.13 '@mercuryworkshop/libcurl-transport@1.3.10': resolution: {integrity: sha512-XLSkk1n4uMu6M0sS5Rh5ZNT7dBGILHDneJYD9oOpWMU5yxzNDlwcmJggNaYqMfH7B8jjLmw5sK2gPU5hDFPAVg==} @@ -4459,7 +4460,7 @@ snapshots: '@mercuryworkshop/epoxy-tls@2.1.6-1': {} - '@mercuryworkshop/epoxy-transport@2.1.13': + '@mercuryworkshop/epoxy-transport@https://codeload.github.com/motortruck1221/epoxytransport/tar.gz/5e8205cdfef67e1cf73fbba7fb56cb181de070f7': dependencies: '@mercuryworkshop/epoxy-tls': 2.1.6-1 diff --git a/src/pages/[lang]/index.astro b/src/pages/[lang]/index.astro index b1c2fb5..cb58f3e 100644 --- a/src/pages/[lang]/index.astro +++ b/src/pages/[lang]/index.astro @@ -92,7 +92,7 @@ const t = useTranslations(lang); const omnibox = document.getElementById("omnibox") as HTMLDivElement; input?.addEventListener("keypress", async function (event: any) { if (event.key === "Enter") { - if (localStorage.getItem(Settings.ProxySettings.proxy) === "uv") { + if (localStorage.getItem(Settings.ProxySettings.proxy) === "uv" || localStorage.getItem(Settings.ProxySettings.proxy) === "automatic") { initSw().then(() => { setTransport( localStorage.getItem(Settings.ProxySettings.transport) as string @@ -185,9 +185,9 @@ const t = useTranslations(lang); } } }); - } catch (_) { + } catch (err) { //we purposely don't return anything - //console.debug(err); + //console.debug(err); } });