Skip to content

Commit

Permalink
don't use an arraybuffer view
Browse files Browse the repository at this point in the history
  • Loading branch information
r58Playz committed Apr 11, 2024
1 parent ce6f1b7 commit 0ff8204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ff8204

Please sign in to comment.