Skip to content

Commit

Permalink
Fix es5 error
Browse files Browse the repository at this point in the history
  • Loading branch information
jakelauritsen committed Jul 19, 2024
1 parent 971e663 commit 243ed70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layout/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@
// modified to query dependent elements rather than binding materialLayout to windows media query result
var materialLayouts = document.querySelectorAll('.mdl-layout');

for (let i = 0; i < materialLayouts.length; i++) {
let layout = materialLayouts[i];
for (var i = 0; i < materialLayouts.length; i++) {
var layout = materialLayouts[i];

if (layout) {
var drawerElement = layout.querySelector('.mdl-layout__drawer');
Expand Down

0 comments on commit 243ed70

Please sign in to comment.