Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 76cf164

Browse files
committed
Merge pull request #1109 from meNeither/master
Implemented check for iframe content
2 parents 5b7abdb + 05b9b19 commit 76cf164

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/jquery.fancybox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@
12221222
if (current.type === 'iframe') {
12231223
iframe = current.content;
12241224

1225-
if (current.autoHeight && iframe.data('ready') === 1) {
1225+
if (current.autoHeight && iframe && iframe.data('ready') === 1) {
12261226
try {
12271227
if (iframe[0].contentWindow.document.location) {
12281228
inner.width( origWidth ).height(9999);

0 commit comments

Comments
 (0)