From 6b81836e6b9815a2996a55ad37dcaa4d89f99e42 Mon Sep 17 00:00:00 2001 From: s1n Date: Sat, 28 Mar 2020 10:31:08 -0700 Subject: 3/28/2020, 10:30 --- space-invaders/js/mobile.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 space-invaders/js/mobile.js (limited to 'space-invaders/js/mobile.js') 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 -- cgit v1.2.3