diff --git a/fix_js.sh b/fix_js.sh deleted file mode 100755 index 1eafcf8..0000000 --- a/fix_js.sh +++ /dev/null @@ -1,8 +0,0 @@ -# Detect OS and use appropriate sed command -if [[ "$OSTYPE" == "darwin"* ]]; then - # macOS - sed -i '' 's/getObject(arg0).focus();/const scrollPos = window.scrollY; getObject(arg0).focus(); window.scrollTo(0, scrollPos);/' ./out/bevy_vaporwave.js -else - # Linux and others - sed -i 's/getObject(arg0).focus();/const scrollPos = window.scrollY; getObject(arg0).focus(); window.scrollTo(0, scrollPos);/' ./out/bevy_vaporwave.js -fi \ No newline at end of file