diff --git a/client/build.sh b/client/build.sh index 6bc90fe..2d77294 100755 --- a/client/build.sh +++ b/client/build.sh @@ -18,7 +18,7 @@ echo "[epx] wasm-opt finished" AUTOGENERATED_SOURCE=$(<"out/epoxy_client.js") # patch for websocket sharedarraybuffer error -AUTOGENERATED_SOURCE=${AUTOGENERATED_SOURCE//getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2)/getObject(arg0).send(new Uint8Array(getArrayU8FromWasm0(arg1, arg2))} +AUTOGENERATED_SOURCE=${AUTOGENERATED_SOURCE//getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2)/getObject(arg0).send(new Uint8Array(getArrayU8FromWasm0(arg1, arg2)).buffer} echo "$AUTOGENERATED_SOURCE" > pkg/epoxy.js WASM_BASE64=$(base64 -w0 out/epoxy_client_bg.wasm)