Default to libcurl over epoxy
This commit is contained in:
parent
3ab4394376
commit
799e8979b2
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue