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 1148a1e commit b38714f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
}
});

$(window).load(function() {
$(window).on('load', function() {
$('body').addClass('is--loaded');
$('.menu-close').appendTo('.primary-menu');
cloneSocialMenu();
Expand Down Expand Up @@ -275,4 +275,4 @@

})(jQuery);

})(jQuery);
})(jQuery);
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ gulp.task( 'styles', stylesSequence );
*/

function scripts() {
return gulp.src(jsFiles)
return gulp.src(jsFiles, { allowEmpty: true })
.pipe(plugins.concat('main.js'))
.pipe(plugins.beautify({indentSize: 2}))
.pipe(gulp.dest('./assets/js/', {"mode": "0644"}));
Expand Down

0 comments on commit b38714f

Please sign in to comment.