Skip to content

Commit

Permalink
post process build script
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadeperfect committed Nov 27, 2024
1 parent 47d85ec commit 7e4e119
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
set -e
cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --out-dir ./out/ --target web ./target/wasm32-unknown-unknown/release/bevy_vaporwave.wasm

sed -i 's/getObject(arg0).focus();/const scrollPos = window.scrollY; getObject(arg0).focus(); window.scrollTo(0, scrollPos);/' ./out/bevy_vaporwave.js

0 comments on commit 7e4e119

Please sign in to comment.