mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-10 13:37:04 +03:00
Fix category colors sometimes not working
This commit is contained in:
@@ -2489,7 +2489,9 @@ function setCategoryColorCSSVariables() {
|
|||||||
if (!styleContainer) {
|
if (!styleContainer) {
|
||||||
styleContainer = document.createElement("style");
|
styleContainer = document.createElement("style");
|
||||||
styleContainer.id = "sbCategoryColorStyle";
|
styleContainer.id = "sbCategoryColorStyle";
|
||||||
document.head.appendChild(styleContainer)
|
|
||||||
|
const head = (document.head || document.documentElement);
|
||||||
|
head.appendChild(styleContainer)
|
||||||
}
|
}
|
||||||
|
|
||||||
let css = ":root {"
|
let css = ":root {"
|
||||||
|
|||||||
Reference in New Issue
Block a user