From e89b533d1240597c810c40a5c8cfa895cfb29d9d Mon Sep 17 00:00:00 2001 From: s1n Date: Tue, 29 Oct 2019 13:07:38 -0700 Subject: Create redirect-to-mobile.js --- js/redirect-to-mobile.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 js/redirect-to-mobile.js diff --git a/js/redirect-to-mobile.js b/js/redirect-to-mobile.js new file mode 100644 index 0000000..08d740b --- /dev/null +++ b/js/redirect-to-mobile.js @@ -0,0 +1,4 @@ +/ CHECKS IF USER IS ON MOBILE +if (screen.width < 768) { + location.href = '/'; +} -- cgit v1.2.3