Skip to content

Commit

Permalink
Merge pull request #761 from SuNaden/master
Browse files Browse the repository at this point in the history
Check for iframe.src when parsing it for remoteHost
  • Loading branch information
davidjbradshaw committed Oct 8, 2019
2 parents 4faa081 + 1d51080 commit b6dc809
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/iframeResizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1096,10 +1096,12 @@
settings[iframeId] = {
firstRun: true,
iframe: iframe,
remoteHost: iframe.src
.split('/')
.slice(0, 3)
.join('/')
remoteHost:
iframe.src &&
iframe.src
.split('/')
.slice(0, 3)
.join('/')
}

checkOptions(options)
Expand Down

0 comments on commit b6dc809

Please sign in to comment.