mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
feat: custom skins panel in acp
This commit is contained in:
@@ -117,7 +117,7 @@ apiController.loadConfig = async function (req) {
|
||||
if (!config.disableCustomUserSkins && settings.bootswatchSkin) {
|
||||
if (settings.bootswatchSkin === 'noskin') {
|
||||
config.bootswatchSkin = '';
|
||||
} else if (settings.bootswatchSkin !== '') {
|
||||
} else if (settings.bootswatchSkin !== '' && await meta.css.isSkinValid(settings.bootswatchSkin)) {
|
||||
config.bootswatchSkin = settings.bootswatchSkin;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user