ie11 doesnt support Object.values (#7993)

This commit is contained in:
Aziz Khoury
2019-10-22 20:44:18 +03:00
committed by Barış Soner Uşaklı
parent cf7e0cfd2d
commit beea56b3c6

View File

@@ -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();