From: Alexander Ebert Date: Thu, 28 May 2020 10:37:56 +0000 (+0200) Subject: Accessing the DOM too early in some cases X-Git-Tag: 5.2.7~32 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7cbbc6ad9fa315527215e4aaba4d7e050e840179;p=GitHub%2FWoltLab%2FWCF.git Accessing the DOM too early in some cases --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index 20eda6e700..1be93fd7bf 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -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);