Skip to content

Commit

Permalink
Improve compatibility with WordPress 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
madalingorbanescu committed Mar 3, 2021
1 parent afcf697 commit 57382f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
$container.masonry('layout');
});

$(window).load(function() {
$(window).on('load', function() {
$container.masonry('layout');
});

Expand Down Expand Up @@ -739,7 +739,7 @@

/* ====== ON WINDOW LOAD ====== */

$window.load(function() {
$window.on('load', function() {

if (!$html.hasClass('touch')) {
var $nav = $('.nav--main').addClass('hover-intent');
Expand Down

0 comments on commit 57382f4

Please sign in to comment.