Merge pull request #351 from kadimi/patch-16

Remove deprecated jQuery method `size()`
This commit is contained in:
Brian Miyaji
2020-04-09 22:01:01 +10:00
committed by GitHub

View File

@@ -10,7 +10,7 @@ function sp_viewport() {
(function($) {
/* Header */
if ( ! $('.sp-header').size() ) {
if ( ! $('.sp-header').length ) {
$('body').prepend( '<div class="sp-header sp-header-loaded"></div>' );
}