forked from GithubBackups/vichan
mobile-style.js: remove now unused mobile-style class
This commit is contained in:
parent
9310958652
commit
47c82f3368
@ -11,11 +11,7 @@
|
|||||||
* $config['additional_javascript'][] = 'js/mobile-style.js';
|
* $config['additional_javascript'][] = 'js/mobile-style.js';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook|Windows Phone|Tablet PC|Windows CE|IEMobile/i)) {
|
if (!navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook|Windows Phone|Tablet PC|Windows CE|IEMobile/i)) {
|
||||||
$('html').addClass("mobile-style");
|
|
||||||
device_type = "mobile";
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$('html').addClass("desktop-style");
|
$('html').addClass("desktop-style");
|
||||||
device_type = "desktop";
|
device_type = "desktop";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user