From 47c82f336860e9c2995962cc852cbec168c76835 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Wed, 8 Jan 2025 23:21:44 +0100 Subject: [PATCH] mobile-style.js: remove now unused mobile-style class --- js/mobile-style.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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"; }