fix eslint

This commit is contained in:
barisusakli
2017-02-13 22:42:47 +03:00
parent a3cbe5e090
commit 30f35c42f6

View File

@@ -85,7 +85,7 @@ module.exports = function (middleware) {
translate(str, req, res, next); translate(str, req, res, next);
}, },
function (translated, next) { function (translated, next) {
translated = translated.replace('<script id="ajaxify-data"></script>', function() { translated = translated.replace('<script id="ajaxify-data"></script>', function () {
return '<script id="ajaxify-data" type="application/json">' + ajaxifyData + '</script>'; return '<script id="ajaxify-data" type="application/json">' + ajaxifyData + '</script>';
}); });
next(null, translated); next(null, translated);