Accessing the DOM too early in some cases
authorAlexander Ebert <ebert@woltlab.com>
Thu, 28 May 2020 10:37:56 +0000 (12:37 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 28 May 2020 10:37:56 +0000 (12:37 +0200)
wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js

index 20eda6e700b8aa6744c5f28cf1a4dfa00e0790ee..1be93fd7bf941569cda53d38b809c9b9c47fa116 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.
-                               data.content.parentNode.add('jsWebKitFractionalPixelFix');
+                               if (data.content.parentNode !== null) data.content.parentNode.add('jsWebKitFractionalPixelFix');
                        }
                        
                        var callbackObject = _dialogToObject.get(id);