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 () { (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

View file

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