mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
fix eslint
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user