Skip to content

Commit

Permalink
ultraviolet fixed!!! I think!!!!
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiteAFancyEmerald committed Jul 10, 2024
1 parent ed5a358 commit b8f52b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion views/assets/js/register-sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async function registerSW() {
let wispUrl = (location.protocol === "https:" ? "wss" : "ws") + "://" + location.host + "/wisp/";
await BareMux.SetTransport("EpxMod.EpoxyClient", { wisp: wispUrl });

//When testing proxy support CLEAR service workers from 8080 (or whatever current port you are using)
//When testing proxy support CLEAR service workers from 8080 (oI'lr whatever current port you are using)

// navigator.serviceWorker.register(stockSW).then(register => register.unregister().then(bool => console.log("Unregistered: " + bool)));

Expand Down
2 changes: 1 addition & 1 deletion views/uv/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const uv = new UVServiceWorker();
self.addEventListener("fetch", (event) => {
event.respondWith(
(async () => {
if (uv.route(event)) {
if (event.request.url.startsWith(location.origin + __uv$config.prefix)) {
return await uv.fetch(event);
}
return await fetch(event.request);
Expand Down

0 comments on commit b8f52b3

Please sign in to comment.