mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +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) => {
|
||||
// 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) {
|
||||
return next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user