parent
50fe68ac8e
commit
92ee76fc24
|
|
@ -69,15 +69,15 @@ let cssForDebug = `
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
head = document.head || document.getElementsByTagName('head')[0],
|
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';
|
styleElem.type = 'text/css';
|
||||||
if (style.styleSheet) {
|
if (styleElem.styleSheet) {
|
||||||
style.styleSheet.cssText = cssForDebug;
|
styleElem.styleSheet.cssText = cssForDebug;
|
||||||
} else {
|
} else {
|
||||||
style.appendChild(document.createTextNode(cssForDebug));
|
styleElem.appendChild(document.createTextNode(cssForDebug));
|
||||||
};
|
};
|
||||||
let debugMenu = document.createElement("div");
|
let debugMenu = document.createElement("div");
|
||||||
debugMenu.innerHTML = `
|
debugMenu.innerHTML = `
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue