From 44db15a41800f27d168f06e6b1163c92d36cd567 Mon Sep 17 00:00:00 2001 From: arcadeperfect Date: Thu, 28 Nov 2024 03:42:50 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20arcadepe?= =?UTF-8?q?rfect/bevy=5Fvaporwave@9b9b596d96ba0ce2d0184fa8d9d3b93c11e9118a?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fix_js.sh | 8 -------- 1 file changed, 8 deletions(-) delete mode 100755 fix_js.sh 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