mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-06-05 15:08:20 +09:00
Change early return in js
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
( function ( document, $, undefined ) {
|
||||
;( function ( document, $, undefined ) {
|
||||
'use strict';
|
||||
|
||||
var plugin = {};
|
||||
@@ -51,9 +51,10 @@
|
||||
$(document).ready(function () {
|
||||
plugin.params = typeof BackStretchVars === 'undefined' ? '' : BackStretchVars;
|
||||
|
||||
if ( typeof plugin.params !== 'undefined' ) {
|
||||
plugin.init();
|
||||
if ( typeof plugin.params === 'undefined' ) {
|
||||
return;
|
||||
}
|
||||
plugin.init();
|
||||
});
|
||||
|
||||
} )( document, jQuery );
|
||||
|
||||
Reference in New Issue
Block a user