mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-20 03:20:28 +02:00
feat: pass widgets to client-side header/footer data
This commit is contained in:
@@ -142,6 +142,7 @@ module.exports = function (middleware) {
|
||||
config: res.locals.config,
|
||||
relative_path,
|
||||
bodyClass: options.bodyClass,
|
||||
widgets: options.widgets,
|
||||
};
|
||||
|
||||
templateValues.configJSON = jsesc(JSON.stringify(res.locals.config), { isScriptContext: true });
|
||||
|
||||
Reference in New Issue
Block a user