diff options
Diffstat (limited to 'js/redirect-to-mobile.js')
| -rw-r--r-- | js/redirect-to-mobile.js | 4 |
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..cae39a9 --- /dev/null +++ b/js/redirect-to-mobile.js @@ -0,0 +1,4 @@ +// CHECKS IF USER IS ON MOBILE +if (screen.width < 768) { + location.href = '/'; +} |