feat: use assetBaseUrl instead of hardcoding

v1.18.x
Barış Soner Uşaklı 5 years ago
parent 3f01f4a2b8
commit 6e91885836

@ -197,7 +197,7 @@ module.exports = function (middleware) {
if (languageCodes.includes(userLang) && languages.timeagoCodes.includes(timeagoCode)) {
const pathToLocaleFile = '/vendor/jquery/timeago/locales/jquery.timeago.' + timeagoCode + '.js';
return nconf.get('relative_path') + '/assets' + pathToLocaleFile;
return res.locals.config.assetBaseUrl + pathToLocaleFile;
}
return false;
})(),

Loading…
Cancel
Save