Default to libcurl over epoxy

This commit is contained in:
MotorTruck1221 2024-03-10 21:56:24 -06:00
parent 3ab4394376
commit 799e8979b2
No known key found for this signature in database
GPG key ID: 06901A625432AC21

View file

@ -27,7 +27,10 @@ function changeTransport(transport: string, wispUrl: string) {
SetTransport("BareMod.BareClient", bare);
break;
default:
SetTransport("EpxMod.EpoxyClient", { wisp: wispUrl });
SetTransport("CurlMod.LibcurlClient", {
wisp: wispUrl,
wasm: "/libcurl.wasm"
});
break;
}
}
@ -42,7 +45,7 @@ const wispUrl =
"/wisp/";
registerRemoteListener(navigator.serviceWorker.controller!);
changeTransport(
localStorage.getItem("transport") || "epoxy",
localStorage.getItem("transport") || "libcurl",
localStorage.getItem("wispUrl") || wispUrl
);