Update debugRework.js

fixed a little bug
This commit is contained in:
feeshmaster 2024-05-11 21:01:37 -05:00 committed by GitHub
parent 50fe68ac8e
commit 92ee76fc24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -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 = `