From 83459e16f9200dc9e7cef84894748b1774694f0c Mon Sep 17 00:00:00 2001 From: s1nical Date: Wed, 7 Aug 2019 21:28:43 -0700 Subject: add mobile to desktop switch --- dev/test.js | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 dev/test.js (limited to 'dev/test.js') diff --git a/dev/test.js b/dev/test.js deleted file mode 100644 index fa8d751..0000000 --- a/dev/test.js +++ /dev/null @@ -1,9 +0,0 @@ -// This one doesn't work at the moment but I'll try to find a way to fix it. - -if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) { - location.href = './mobile/'; -} else if (/Chrome|Mac|MacBook|Firefox|Mozilla|Opera|OperaGX|Avast|IE|Windows|MacOS|/i.test(navigator.userAgent)) { - location.href = './index.html'; -} else { - location.href = './index.html'; -} \ No newline at end of file -- cgit v1.2.3