Skip to content

Node.js based forum software built for the modern web

ie11 doesnt support Object.values (#7993)

Aziz Khourybeea56b3c67d
diff --git a/public/src/app.js b/public/src/app.js
index bdb63d152b..4a8b1a2b95 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -143,7 +143,9 @@ app.cacheBuster = null;
return translator.Translator.create().translate(render);
});
})).then(function (html) {
- Object.values(toRender).forEach(function (element, idx) {
+ Object.keys(toRender)
+ .map(function(k) { return toRender[k]; })
+ .forEach(function (element, idx) {
element.html(html[idx]);
});
Unread.initUnreadTopics();