From b6a51a96b3f871f490f3295e2b7ed00039b3a1cf Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 8 Aug 2022 18:41:04 +0200 Subject: [PATCH] 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. --- wcfsetup/install/files/js/WCF.js | 4 ---- 1 file changed, 4 deletions(-) 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; -- 2.20.1