Removed a forced reflow that effectively did nothing
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Jan 2022 13:35:59 +0000 (14:35 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Jan 2022 13:35:59 +0000 (14:35 +0100)
wcfsetup/install/files/js/WCF.js

index 375c435ddf515181c86280cdbc2899dec5750ae5..a5b09fc9c1143f2cd619e1e52748ee0c9912b126 100755 (executable)
@@ -136,7 +136,8 @@ window.shuffle = function(array) {
        jQuery.browser.touch = (!!('ontouchstart' in window) || (!!('msMaxTouchPoints' in window.navigator) && window.navigator.msMaxTouchPoints > 0));
        
        // detect smartphones
-       jQuery.browser.smartphone = ($('html').css('caption-side') == 'bottom');
+       // @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/)) {