Incorrect fix for the class access
authorAlexander Ebert <ebert@woltlab.com>
Thu, 28 May 2020 10:42:43 +0000 (12:42 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 28 May 2020 10:42:43 +0000 (12:42 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js

index 1be93fd7bf941569cda53d38b809c9b9c47fa116..9737cee67c7c850d56c5cfa1d0f1bb427b1de5ec 100644 (file)
@@ -683,7 +683,7 @@ define(
                                // 
                                // We can use `backface-visibility: hidden` to prevent the anti aliasing artifacts in
                                // WebKit/Blink, which will also prevent some weird font rendering issues when resizing.
-                               if (data.content.parentNode !== null) data.content.parentNode.add('jsWebKitFractionalPixelFix');
+                               data.content.parentNode.classList.add('jsWebKitFractionalPixelFix');
                        }
                        
                        var callbackObject = _dialogToObject.get(id);