diff options
| author | s1n <[email protected]> | 2020-03-28 10:31:08 -0700 |
|---|---|---|
| committer | s1n <[email protected]> | 2020-03-28 10:31:08 -0700 |
| commit | 6b81836e6b9815a2996a55ad37dcaa4d89f99e42 (patch) | |
| tree | 74bb9aa78ca31a6acfffd908e34dfb0df433c707 /js/redirect-to-mobile.js | |
| parent | Create .gitignore (diff) | |
| download | cyne.cf-backup-master.tar.xz cyne.cf-backup-master.zip | |
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 = '/'; +} |