From 5567acdb35acab80a490d1f941acd7fbb202d56b Mon Sep 17 00:00:00 2001 From: ebolam Date: Tue, 18 Oct 2022 21:06:28 -0400 Subject: [PATCH] Fix for missing advanced theme data --- static/koboldai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index fd274376..813a005c 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -2781,7 +2781,7 @@ function getAllCSSVariableNames(styleSheets = document.styleSheets){ for(let k = 0; k < styleSheets[i].cssRules[j].style.length; k++){ let name = styleSheets[i].cssRules[j].style[k]; // test name for css variable signiture and uniqueness - if(name.startsWith('--') && (styleSheets[i].ownerNode.id == "CSSTheme")){ + if(name.startsWith('--') && (styleSheets[i].ownerNode.id.includes("CSSTheme"))){ let value = styleSheets[i].cssRules[j].style.getPropertyValue(name); value.replace(/(\r\n|\r|\n){2,}/g, '$1\n'); value = value.replaceAll("\t", "").trim();