summaryrefslogtreecommitdiff
path: root/mobile/js/app.js
diff options
context:
space:
mode:
authors1nical <[email protected]>2019-08-23 05:34:50 -0700
committers1nical <[email protected]>2019-08-23 05:34:50 -0700
commit8b9a0ffdd26d41c07e42b0fcdace393ff638e072 (patch)
treec046fccd084a39d606d33a64259d2bbf76393fc0 /mobile/js/app.js
parentmobile redir to use useragrent instead screenwidth (diff)
downloads1n.pw-admin-8b9a0ffdd26d41c07e42b0fcdace393ff638e072.tar.xz
s1n.pw-admin-8b9a0ffdd26d41c07e42b0fcdace393ff638e072.zip
redo previous useragent back to screenwidth
Diffstat (limited to 'mobile/js/app.js')
-rw-r--r--mobile/js/app.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/mobile/js/app.js b/mobile/js/app.js
index 737ff10..ae22283 100644
--- a/mobile/js/app.js
+++ b/mobile/js/app.js
@@ -3,21 +3,10 @@ $(window).on("load", function () {
$(".loader-wrapper").fadeOut("slow");
})
-/*
// CHECKS IF USER IS ON DESKTOP
if( screen.width > 480 ) {
location.href = '/index.html';
}
-*/
-
-// 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/';
-} else {
- location.href = '/';
-}
// BACKGROUND SPARKLES
// SCRIPT #1