Skip to content

Commit

Permalink
Merge pull request #151 from digi-trust/master
Browse files Browse the repository at this point in the history
v1.5.2 - MS compatibility fixes
  • Loading branch information
SupahNickie authored Aug 8, 2018
2 parents 625d9b2 + bfeeb3b commit d5c4fcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ export default class App extends Component {
for(let elem in elems) {
let cssRules = elems[elem];
let selectedEls = base.querySelectorAll(elem) || [];
selectedEls.forEach(function(currentEl) {
// Necessary for compatibility with Microsoft browsers
Array.prototype.forEach.call(selectedEls, function(currentEl) {
for(let cssProp in cssRules) {
currentEl.style[cssProp] = cssRules[cssProp];
}
})
});
}
};

Expand Down

0 comments on commit d5c4fcb

Please sign in to comment.