Skip to content

Node.js based forum software built for the modern web

add: new filter to filter skins

Barış Soner Uşaklıc1361ee580f5
diff --git a/src/meta/css.js b/src/meta/css.js
index 6298cfc44a..8b19edbc92 100644
--- a/src/meta/css.js
+++ b/src/meta/css.js
@@ -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 = {}) {