Skip to content

Node.js based forum software built for the modern web

chore: up peace, refactor widgets

Barış Soner Uşaklı0f5e1457f097
diff --git a/install/package.json b/install/package.json
index 0885090fba..4e008050c3 100644
--- a/install/package.json
+++ b/install/package.json
@@ -109,7 +109,7 @@
"nodebb-rewards-essentials": "1.0.0",
"nodebb-theme-harmony": "1.2.90",
"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-widget-essentials": "7.0.31",
"nodemailer": "6.9.16",
diff --git a/public/src/widgets.js b/public/src/widgets.js
index 6f4b030b4c..49ed3c67b7 100644
--- a/public/src/widgets.js
+++ b/public/src/widgets.js
@@ -14,10 +14,7 @@ module.exports.render = function (template) {
return;
}
- let html = '';
- widgetsAtLocation.forEach(function (widget) {
- html += widget.html;
- });
+ const html = widgetsAtLocation.map(widget => widget.html).join('');
if (!html) {
return;
}