feat: update WASM loading in initLibcurl and enhance error logging in Anisette class
This commit is contained in:
@@ -10,7 +10,7 @@ export async function initLibcurl(): Promise<void> {
|
||||
const wsProto = location.protocol === "https:" ? "wss:" : "ws:";
|
||||
let wsUrl = `${wsProto}//${location.host}/wisp/`;
|
||||
libcurl.set_websocket(wsUrl);
|
||||
await libcurl.load_wasm("/libcurl.wasm");
|
||||
await libcurl.load_wasm();
|
||||
initialized = true;
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user