diff options
Diffstat (limited to 'js/redirect-to-desktop.js')
| -rw-r--r-- | js/redirect-to-desktop.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/redirect-to-desktop.js b/js/redirect-to-desktop.js new file mode 100644 index 0000000..64d767d --- /dev/null +++ b/js/redirect-to-desktop.js @@ -0,0 +1,4 @@ +// CHECKS IF USER IS ON DESKTOP +if (screen.width > 480) { + location.href = '/index.html'; +}
\ No newline at end of file |