Format
This commit is contained in:
parent
df25d7882d
commit
bb26ff2e98
4 changed files with 689 additions and 661 deletions
|
|
@ -51,11 +51,12 @@ self.addEventListener("fetch", (event) => {
|
||||||
(async function () {
|
(async function () {
|
||||||
return await uv.fetch(event);
|
return await uv.fetch(event);
|
||||||
})()
|
})()
|
||||||
)}
|
);
|
||||||
else {
|
} else {
|
||||||
event.respondWith(
|
event.respondWith(
|
||||||
(async function () {
|
(async function () {
|
||||||
return await fetch(event.request);
|
return await fetch(event.request);
|
||||||
})()
|
})()
|
||||||
)}
|
);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -19,12 +19,13 @@ function changeTransport(transport: string, wispUrl: string) {
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "bare":
|
case "bare":
|
||||||
localStorage.setItem("transport", "bare");
|
localStorage.setItem("transport", "bare");
|
||||||
console.log("Setting transport to Bare");
|
console.log("Setting transport to Bare");
|
||||||
const bare = localStorage.getItem("bare") || window.location.origin + "/bare/";
|
const bare =
|
||||||
console.log("Bare URL: " + bare);
|
localStorage.getItem("bare") || window.location.origin + "/bare/";
|
||||||
SetTransport("BareMod.BareClient", bare);
|
console.log("Bare URL: " + bare);
|
||||||
break;
|
SetTransport("BareMod.BareClient", bare);
|
||||||
|
break;
|
||||||
//stuff like bare-as-module3 COULD also be added
|
//stuff like bare-as-module3 COULD also be added
|
||||||
default:
|
default:
|
||||||
SetTransport("EpxMod.EpoxyClient", { wisp: wispUrl });
|
SetTransport("EpxMod.EpoxyClient", { wisp: wispUrl });
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue