mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: up peace, refactor widgets
This commit is contained in:
@@ -109,7 +109,7 @@
|
|||||||
"nodebb-rewards-essentials": "1.0.0",
|
"nodebb-rewards-essentials": "1.0.0",
|
||||||
"nodebb-theme-harmony": "1.2.90",
|
"nodebb-theme-harmony": "1.2.90",
|
||||||
"nodebb-theme-lavender": "7.1.17",
|
"nodebb-theme-lavender": "7.1.17",
|
||||||
"nodebb-theme-peace": "2.2.31",
|
"nodebb-theme-peace": "2.2.32",
|
||||||
"nodebb-theme-persona": "13.3.60",
|
"nodebb-theme-persona": "13.3.60",
|
||||||
"nodebb-widget-essentials": "7.0.31",
|
"nodebb-widget-essentials": "7.0.31",
|
||||||
"nodemailer": "6.9.16",
|
"nodemailer": "6.9.16",
|
||||||
|
|||||||
@@ -14,10 +14,7 @@ module.exports.render = function (template) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let html = '';
|
const html = widgetsAtLocation.map(widget => widget.html).join('');
|
||||||
widgetsAtLocation.forEach(function (widget) {
|
|
||||||
html += widget.html;
|
|
||||||
});
|
|
||||||
if (!html) {
|
if (!html) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user