From 7cbbc6ad9fa315527215e4aaba4d7e050e840179 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 28 May 2020 12:37:56 +0200 Subject: [PATCH] Accessing the DOM too early in some cases --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1