adding polyfill for NodeList.forEach
This commit is contained in:
11
material/login/resources/js/polyfill/nodelist-foreach.js
Normal file
11
material/login/resources/js/polyfill/nodelist-foreach.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// Taken from https://developer.mozilla.org/en-US/docs/Web/API/NodeList/forEach
|
||||
// Allows for document.querySelectorAll('.selector').forEach(...)
|
||||
|
||||
if (window.NodeList && !NodeList.prototype.forEach) {
|
||||
NodeList.prototype.forEach = function (callback, thisArg) {
|
||||
thisArg = thisArg || window;
|
||||
for (var i = 0; i < this.length; i++) {
|
||||
callback.call(thisArg, this[i], i, this);
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
parent=base
|
||||
styles=css/material-components-web.min.css css/bootstrap-material-design-alerts.css css/material-keycloak-theme.css
|
||||
|
||||
scripts=js/material-components-web.min.js js/material-keycloak-theme.js
|
||||
scripts=js/polyfill/nodelist-foreach.js js/material-components-web.min.js js/material-keycloak-theme.js
|
||||
|
||||
kcLogoLink=https://www.maximuscanada.ca/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user