Skip to content

Commit

Permalink
Fix IE11: don't use unsupported forEach
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed May 12, 2020
1 parent 8dd1a5e commit e21e2ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion notifications/static/notifications/notify.js
Expand Up @@ -56,7 +56,9 @@ function fetch_api_data() {
if (this.status === 200){
consecutive_misfires = 0;
var data = JSON.parse(r.responseText);
registered_functions.forEach(function (func) { func(data); });
for(var i = 0; i < registered_functions.length; i++) {
registered_functions[i](data);
}
}else{
consecutive_misfires++;
}
Expand Down

0 comments on commit e21e2ce

Please sign in to comment.