diff --git a/index.html b/index.html index 3ceea76..e4b6ae1 100644 --- a/index.html +++ b/index.html @@ -3,19 +3,20 @@ - - + + - @@ -29,11 +30,13 @@ ) window.location.href = window.location.href; + diff --git a/public/sw.js b/public/sw.js index 772250f..15c7ddb 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,3 +1,4 @@ +importScripts("/epoxy/index.js"); importScripts("/uv/uv.bundle.js"); importScripts("/uv/uv.config.js"); importScripts(__uv$config.sw || "/uv/uv.sw.js"); diff --git a/src/util/transports.ts b/src/util/transports.ts index db49f82..981344a 100644 --- a/src/util/transports.ts +++ b/src/util/transports.ts @@ -20,7 +20,7 @@ function changeTransport(transport: string, wispUrl: string) { } } -registerRemoteListener(navigator.serviceWorker.controller!); -const p = changeTransport("epoxy", "ws://localhost:5173/wisp/"); -window.p = p; +//registerRemoteListener(navigator.serviceWorker.controller!); +//const p = changeTransport("epoxy", "ws://localhost:5173/wisp/"); +//window.p = p; export { changeTransport }; diff --git a/vite.config.ts b/vite.config.ts index f10cdba..efad3df 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,15 +9,13 @@ import { baremuxPath } from "@mercuryworkshop/bare-mux"; import path from "path"; const __dirname = path.resolve(); -console.log(dynamicPath); - export default defineConfig({ plugins: [ viteStaticCopy({ targets: [ { // .replace fixes weird paths on Windows - src: `${uvPath}/uv.*.js`.replace(/\\/g, "/"), + src: `${uvPath}/**/*`.replace(/\\/g, "/"), dest: "uv", overwrite: false },