hero.js: don't shadow the global CSS object
This commit is contained in:
@@ -25,7 +25,7 @@ const CYCLE_MS = 28000;
|
||||
const SEED = 7;
|
||||
const COUNT = 47;
|
||||
|
||||
const CSS = `
|
||||
const STYLE_TEXT = `
|
||||
.redoal-paths {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
@@ -58,7 +58,7 @@ function ensureStyle() {
|
||||
if (document.getElementById(STYLE_ID)) return;
|
||||
const style = document.createElement('style');
|
||||
style.id = STYLE_ID;
|
||||
style.textContent = CSS;
|
||||
style.textContent = STYLE_TEXT;
|
||||
document.head.appendChild(style);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user