Skip to content

Commit c13d3ae

Browse files
Fixing a bug where resize no longer works because of the parameter call
1 parent abbf1f8 commit c13d3ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/check-width.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ $(function () {
1313
checkWidthToggleClass();
1414
}
1515
} else {
16+
console.log("CheckWidthFalse")
1617
checkWidthToggleClass();
1718
}
1819
}
@@ -32,5 +33,5 @@ $(function () {
3233
// Execute on load
3334
checkWidth(true);
3435
// Bind event listener
35-
$(window).resize(checkWidth(false));
36+
$(window).resize(checkWidth);
3637
});

0 commit comments

Comments
 (0)