hero.js: don't shadow the global CSS object

This commit is contained in:
Bendik Aagaard Lynghaug
2026-08-25 19:27:37 +02:00
parent 683c6da6b9
commit e6f847b7d3
+2 -2
View File
@@ -25,7 +25,7 @@ const CYCLE_MS = 28000;
const SEED = 7; const SEED = 7;
const COUNT = 47; const COUNT = 47;
const CSS = ` const STYLE_TEXT = `
.redoal-paths { .redoal-paths {
position: absolute; position: absolute;
inset: 0; inset: 0;
@@ -58,7 +58,7 @@ function ensureStyle() {
if (document.getElementById(STYLE_ID)) return; if (document.getElementById(STYLE_ID)) return;
const style = document.createElement('style'); const style = document.createElement('style');
style.id = STYLE_ID; style.id = STYLE_ID;
style.textContent = CSS; style.textContent = STYLE_TEXT;
document.head.appendChild(style); document.head.appendChild(style);
} }