feat: update WASM loading in initLibcurl and enhance error logging in Anisette class

This commit is contained in:
2026-03-02 10:31:45 +08:00
parent 33db721df7
commit f9f4892ef3
3 changed files with 17 additions and 11 deletions

View File

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