Skip to content

Commit 2b827ca

Browse files
committed
Fix mysterious IE11 issue with missing forEach method
1 parent 1a173c2 commit 2b827ca

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

decidim-core/app/assets/javascripts/decidim.js.es6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// = require decidim/core/bundle.js
2+
// = require decidim/core/extrapoly.js
23
// = require jquery3
34
// = require rails-ujs
45
// = require decidim/foundation
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// IE11 fix
2+
// For some reason this is not applied early enough causing IE11 to crash some
3+
// core scripts during load time.
4+
if (typeof NodeList.prototype.forEach !== "function") {
5+
NodeList.prototype.forEach = Array.prototype.forEach;
6+
}

0 commit comments

Comments
 (0)