diff options
| author | s1n <[email protected]> | 2019-10-29 13:07:38 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-10-29 13:07:38 -0700 |
| commit | e89b533d1240597c810c40a5c8cfa895cfb29d9d (patch) | |
| tree | a465a68b7ed4fc7b3ccbc8f1d1b16caa6470ddca /js | |
| parent | add directory to konami (diff) | |
| download | s1n.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.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..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 = '/'; +} |