feat: custom skins panel in acp

This commit is contained in:
Barış Soner Uşaklı
2023-06-16 18:04:22 -04:00
parent ae34900417
commit 556fd65d51
10 changed files with 195 additions and 30 deletions

View File

@@ -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;
}
}