mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fix: #11775, trim -rtl from targetSkin
This commit is contained in:
@@ -229,7 +229,7 @@ middleware.delayLoading = function delayLoading(req, res, next) {
|
|||||||
|
|
||||||
middleware.buildSkinAsset = helpers.try(async (req, res, next) => {
|
middleware.buildSkinAsset = helpers.try(async (req, res, next) => {
|
||||||
// If this middleware is reached, a skin was requested, so it is built on-demand
|
// If this middleware is reached, a skin was requested, so it is built on-demand
|
||||||
const targetSkin = path.basename(req.originalUrl).split('.css')[0];
|
const targetSkin = path.basename(req.originalUrl).split('.css')[0].replace(/-rtl$/, '');
|
||||||
if (!targetSkin) {
|
if (!targetSkin) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user