diff --git a/js/mobile-style.js b/js/mobile-style.js index e35dc402..72e0c971 100644 --- a/js/mobile-style.js +++ b/js/mobile-style.js @@ -11,11 +11,7 @@ * $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)) { - $('html').addClass("mobile-style"); - device_type = "mobile"; -} -else { +if (!navigator.userAgent.match(/iPhone|iPod|iPad|Android|Opera Mini|Blackberry|PlayBook|Windows Phone|Tablet PC|Windows CE|IEMobile/i)) { $('html').addClass("desktop-style"); device_type = "desktop"; }