summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authors1n <[email protected]>2019-10-29 13:07:38 -0700
committerGitHub <[email protected]>2019-10-29 13:07:38 -0700
commite89b533d1240597c810c40a5c8cfa895cfb29d9d (patch)
treea465a68b7ed4fc7b3ccbc8f1d1b16caa6470ddca /js
parentadd directory to konami (diff)
downloads1n.pw-admin-e89b533d1240597c810c40a5c8cfa895cfb29d9d.tar.xz
s1n.pw-admin-e89b533d1240597c810c40a5c8cfa895cfb29d9d.zip
Create redirect-to-mobile.js
Diffstat (limited to 'js')
-rw-r--r--js/redirect-to-mobile.js4
1 files changed, 4 insertions, 0 deletions
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 = '/';
+}