Skip to content

Commit 48f88cf

Browse files
committed
Ensure that the iframe has a source set before appending it to the DOM. This fixes the problems described in github issue marcuswestin#86, where webViewDidStart/FinishLoad were called twice and isLoading was always true.
1 parent da91f9b commit 48f88cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WebViewJavascriptBridge/WebViewJavascriptBridge.js.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
function _createQueueReadyIframe(doc) {
1515
messagingIframe = doc.createElement('iframe')
1616
messagingIframe.style.display = 'none'
17+
messagingIframe.src = CUSTOM_PROTOCOL_SCHEME + '://' + QUEUE_HAS_MESSAGE
1718
doc.documentElement.appendChild(messagingIframe)
1819
}
1920

0 commit comments

Comments
 (0)