This commit is contained in:
MotorTruck1221 2024-03-10 03:55:28 -06:00
parent df25d7882d
commit bb26ff2e98
No known key found for this signature in database
GPG key ID: 06901A625432AC21
4 changed files with 689 additions and 661 deletions

View file

@ -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

View file

@ -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 });