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 () {
|
||||
return await uv.fetch(event);
|
||||
})()
|
||||
)}
|
||||
else {
|
||||
);
|
||||
} else {
|
||||
event.respondWith(
|
||||
(async function () {
|
||||
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;
|
||||
case "bare":
|
||||
localStorage.setItem("transport", "bare");
|
||||
console.log("Setting transport to Bare");
|
||||
const bare = localStorage.getItem("bare") || window.location.origin + "/bare/";
|
||||
console.log("Bare URL: " + bare);
|
||||
SetTransport("BareMod.BareClient", bare);
|
||||
break;
|
||||
localStorage.setItem("transport", "bare");
|
||||
console.log("Setting transport to Bare");
|
||||
const bare =
|
||||
localStorage.getItem("bare") || window.location.origin + "/bare/";
|
||||
console.log("Bare URL: " + bare);
|
||||
SetTransport("BareMod.BareClient", bare);
|
||||
break;
|
||||
//stuff like bare-as-module3 COULD also be added
|
||||
default:
|
||||
SetTransport("EpxMod.EpoxyClient", { wisp: wispUrl });
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue