name-color 0.2 (- debug oops)

This commit is contained in:
mehbark 2024-07-10 19:51:24 -04:00
parent 1d526e8365
commit e719a80f1f

View file

@ -55,15 +55,12 @@ function doit() {
document.head.querySelectorAll(".name-color-stylesheet").forEach(s => s.remove()); document.head.querySelectorAll(".name-color-stylesheet").forEach(s => s.remove());
style2.className = "name-color-stylesheet"; style2.className = "name-color-stylesheet";
}; };
style2.count = style.count + 1;
console.log(style2.count);
document.head.appendChild(style2); document.head.appendChild(style2);
} else { } else {
style = document.createElement("link"); style = document.createElement("link");
style.className = "name-color-stylesheet"; style.className = "name-color-stylesheet";
style.rel = "stylesheet"; style.rel = "stylesheet";
style.href = url.toString(); style.href = url.toString();
style.count = 0;
document.head.appendChild(style); document.head.appendChild(style);
} }
} }