Skip to content

Commit

Permalink
feat: use assetBaseUrl instead of hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Aug 11, 2020
1 parent 3f01f4a commit 6e91885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/header.js
Expand Up @@ -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;
})(),
Expand Down

0 comments on commit 6e91885

Please sign in to comment.