From 3dcb5cfe9e51a8be09ede6cb04680a86dd6bc29e Mon Sep 17 00:00:00 2001 From: Weilbyte <me@weilbyte.dev> Date: Sat, 25 Dec 2021 03:41:27 +0100 Subject: [PATCH] Add TFAEdit undefined check --- PVEDiscordDark/js/PVEDiscordDark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVEDiscordDark/js/PVEDiscordDark.js b/PVEDiscordDark/js/PVEDiscordDark.js index 62acc9b..e3f0427 100644 --- a/PVEDiscordDark/js/PVEDiscordDark.js +++ b/PVEDiscordDark/js/PVEDiscordDark.js @@ -53,7 +53,7 @@ function patchDiskSmartWindow() { } function patchTFAEdit() { - PVE.window.TFAEdit.prototype.items[0].items[0].items[1].style["background-color"] = 'transparent'; + if (PVE.window.TFAEdit) PVE.window.TFAEdit.prototype.items[0].items[0].items[1].style["background-color"] = 'transparent'; } function patchCreateWidget() { -- GitLab