Skip to content

Commit

Permalink
Merge pull request #1100 from gabrielgrant/fix-jquery-checks
Browse files Browse the repository at this point in the history
Fix jquery checks
  • Loading branch information
davidjbradshaw committed Jan 29, 2023
2 parents 81ba9d0 + 36a6ff9 commit 07f1246
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/iframeResizer.contentWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@
return (
(!(typeof module !== 'undefined' && module.exports) &&
'iFrameResize' in window) ||
('jQuery' in window && 'iFrameResize' in window.jQuery.prototype)
(typeof window.jQuery !== "undefined" && 'iFrameResize' in window.jQuery.prototype)
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/iframeResizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@
}
}

if (window.jQuery) {
if (typeof window.jQuery !== "undefined") {
createJQueryPublicMethod(window.jQuery)
}

Expand Down

0 comments on commit 07f1246

Please sign in to comment.