diff options
Diffstat (limited to 'wolf3d')
| -rw-r--r-- | wolf3d/js/main.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wolf3d/js/main.js b/wolf3d/js/main.js index 5807029..04584f0 100644 --- a/wolf3d/js/main.js +++ b/wolf3d/js/main.js @@ -1,4 +1,13 @@ +/* // CHECKS IF USER IS ON MOBILE if (screen.width <= 480) { location.href = '/mobile'; +} +*/ + +// THIS CHECKS WHAT OS THE USER IS ON +// This is a old variation so don't use this. +// Using it because this way you can use Chrome's "Request Desktop Site" feature. +if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) { + location.href = '/mobile/'; }
\ No newline at end of file |