mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't set an undefined theme field to an empty string
This commit is contained in:
@ -1313,9 +1313,7 @@ function applyTheme(name) {
|
|||||||
if (type) applyThemeColor(type);
|
if (type) applyThemeColor(type);
|
||||||
if (action) action();
|
if (action) action();
|
||||||
} else {
|
} else {
|
||||||
if (selector) { $(selector).attr('color', 'rgba(0,0,0,0)'); }
|
|
||||||
console.debug(`Empty theme key: ${key}`);
|
console.debug(`Empty theme key: ${key}`);
|
||||||
power_user[key] = '';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user