Skip to content

Commit

Permalink
Ensure that the iframe has a source set before appending it to the DO…
Browse files Browse the repository at this point in the history
…M. This fixes the problems described in github issue marcuswestin#86, where webViewDidStart/FinishLoad were called twice and isLoading was always true.
  • Loading branch information
marcuswestin committed Jun 28, 2014
1 parent da91f9b commit 48f88cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WebViewJavascriptBridge/WebViewJavascriptBridge.js.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
function _createQueueReadyIframe(doc) {
messagingIframe = doc.createElement('iframe')
messagingIframe.style.display = 'none'
messagingIframe.src = CUSTOM_PROTOCOL_SCHEME + '://' + QUEUE_HAS_MESSAGE
doc.documentElement.appendChild(messagingIframe)
}

Expand Down

0 comments on commit 48f88cf

Please sign in to comment.