From 92ee76fc24aba61dcfae5e38b36e351df8fabefb Mon Sep 17 00:00:00 2001 From: feeshmaster <125420779+feeshmaster@users.noreply.github.com> Date: Sat, 11 May 2024 21:01:37 -0500 Subject: [PATCH] Update debugRework.js fixed a little bug --- mods/debugRework.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mods/debugRework.js b/mods/debugRework.js index ca437ff2..7a432450 100644 --- a/mods/debugRework.js +++ b/mods/debugRework.js @@ -69,15 +69,15 @@ let cssForDebug = ` } `, head = document.head || document.getElementsByTagName('head')[0], - style = document.createElement('style'); + styleElem = document.createElement('style'); -head.appendChild(style); +head.appendChild(styleElem); -style.type = 'text/css'; -if (style.styleSheet) { - style.styleSheet.cssText = cssForDebug; +styleElem.type = 'text/css'; +if (styleElem.styleSheet) { + styleElem.styleSheet.cssText = cssForDebug; } else { - style.appendChild(document.createTextNode(cssForDebug)); + styleElem.appendChild(document.createTextNode(cssForDebug)); }; let debugMenu = document.createElement("div"); debugMenu.innerHTML = `