mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for missing advanced theme data
This commit is contained in:
@@ -2781,7 +2781,7 @@ function getAllCSSVariableNames(styleSheets = document.styleSheets){
|
|||||||
for(let k = 0; k < styleSheets[i].cssRules[j].style.length; k++){
|
for(let k = 0; k < styleSheets[i].cssRules[j].style.length; k++){
|
||||||
let name = styleSheets[i].cssRules[j].style[k];
|
let name = styleSheets[i].cssRules[j].style[k];
|
||||||
// test name for css variable signiture and uniqueness
|
// 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);
|
let value = styleSheets[i].cssRules[j].style.getPropertyValue(name);
|
||||||
value.replace(/(\r\n|\r|\n){2,}/g, '$1\n');
|
value.replace(/(\r\n|\r|\n){2,}/g, '$1\n');
|
||||||
value = value.replaceAll("\t", "").trim();
|
value = value.replaceAll("\t", "").trim();
|
||||||
|
Reference in New Issue
Block a user