summaryrefslogtreecommitdiff
path: root/games/space-invaders/js/mobile.js
diff options
context:
space:
mode:
author8cy <[email protected]>2020-06-02 10:24:13 -0700
committer8cy <[email protected]>2020-06-02 10:24:13 -0700
commit2321b2a0acaa0cba14dc38633cd46adee838294c (patch)
treee556c69fc7fdb3d7afa7a1a4fd6b381112db126f /games/space-invaders/js/mobile.js
downloadkyzer.co-admin-2321b2a0acaa0cba14dc38633cd46adee838294c.tar.xz
kyzer.co-admin-2321b2a0acaa0cba14dc38633cd46adee838294c.zip
Initial commit
Diffstat (limited to 'games/space-invaders/js/mobile.js')
-rw-r--r--games/space-invaders/js/mobile.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/games/space-invaders/js/mobile.js b/games/space-invaders/js/mobile.js
new file mode 100644
index 0000000..5807029
--- /dev/null
+++ b/games/space-invaders/js/mobile.js
@@ -0,0 +1,4 @@
+// CHECKS IF USER IS ON MOBILE
+if (screen.width <= 480) {
+ location.href = '/mobile';
+} \ No newline at end of file