mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
add: new filter to filter skins
This commit is contained in:
@@ -256,13 +256,12 @@ CSS.getSkinSwitcherOptions = async function (uid) {
|
||||
});
|
||||
return skins;
|
||||
}
|
||||
|
||||
return {
|
||||
return await plugins.hooks.fire('filter:meta.css.getSkinSwitcherOptions', {
|
||||
default: defaultSkins,
|
||||
custom: customSkins.map(s => ({ ...s, selected: s.value === userSettings.bootswatchSkin })),
|
||||
light: parseSkins(lightSkins),
|
||||
dark: parseSkins(darkSkins),
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
CSS.getCustomSkins = async function (opts = {}) {
|
||||
|
||||
Reference in New Issue
Block a user