mirror of
https://github.com/QuiteAFancyEmerald/Holy-Unblocker.git
synced 2025-05-13 12:00:02 -04:00
ultraviolet fixed!!! I think!!!!
This commit is contained in:
parent
ed5a358297
commit
b8f52b3b5c
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ async function registerSW() {
|
||||||
let wispUrl = (location.protocol === "https:" ? "wss" : "ws") + "://" + location.host + "/wisp/";
|
let wispUrl = (location.protocol === "https:" ? "wss" : "ws") + "://" + location.host + "/wisp/";
|
||||||
await BareMux.SetTransport("EpxMod.EpoxyClient", { wisp: wispUrl });
|
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)));
|
// navigator.serviceWorker.register(stockSW).then(register => register.unregister().then(bool => console.log("Unregistered: " + bool)));
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ const uv = new UVServiceWorker();
|
||||||
self.addEventListener("fetch", (event) => {
|
self.addEventListener("fetch", (event) => {
|
||||||
event.respondWith(
|
event.respondWith(
|
||||||
(async () => {
|
(async () => {
|
||||||
if (uv.route(event)) {
|
if (event.request.url.startsWith(location.origin + __uv$config.prefix)) {
|
||||||
return await uv.fetch(event);
|
return await uv.fetch(event);
|
||||||
}
|
}
|
||||||
return await fetch(event.request);
|
return await fetch(event.request);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue