summaryrefslogtreecommitdiff
path: root/space-invaders/js/mobile.js
diff options
context:
space:
mode:
authors1n <[email protected]>2020-03-28 10:31:08 -0700
committers1n <[email protected]>2020-03-28 10:31:08 -0700
commit6b81836e6b9815a2996a55ad37dcaa4d89f99e42 (patch)
tree74bb9aa78ca31a6acfffd908e34dfb0df433c707 /space-invaders/js/mobile.js
parentCreate .gitignore (diff)
downloadcyne.cf-backup-master.tar.xz
cyne.cf-backup-master.zip
3/28/2020, 10:30HEADmaster
Diffstat (limited to 'space-invaders/js/mobile.js')
-rw-r--r--space-invaders/js/mobile.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/space-invaders/js/mobile.js b/space-invaders/js/mobile.js
new file mode 100644
index 0000000..5807029
--- /dev/null
+++ b/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