From: Alexander Ebert Date: Mon, 8 Aug 2022 16:41:04 +0000 (+0200) Subject: Remove the unused smartphone detection in jQuery X-Git-Tag: 6.0.0_Alpha_1~1049^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b6a51a96b3f871f490f3295e2b7ed00039b3a1cf;p=GitHub%2FWoltLab%2FWCF.git Remove the unused smartphone detection in jQuery This was a custom detection that was entirely flawed and hard-coded to always return `false` since 5.5. --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index f8e8732e75..ac44d7f915 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -103,10 +103,6 @@ jQuery.browser = $.extend(jQuery.browser, browser); jQuery.browser.touch = (!!('ontouchstart' in window) || (!!('msMaxTouchPoints' in window.navigator) && window.navigator.msMaxTouchPoints > 0)); - // detect smartphones - // @deprecated 5.5 The previous check always yielded false, the property is kept for compatibility only. - jQuery.browser.smartphone = false; - // properly detect IE11 if (jQuery.browser.mozilla && ua.match(/trident/)) { jQuery.browser.mozilla = false;