Hi, WebViewJavascriptBridge is cool. But I have an odd trouble.
There is an ajax request (XHR) in my website. When I inject the WebViewJavascriptBridge js code. The request was broken.
https://github.com/marcuswestin/WebViewJavascriptBridge/blob/master/WebViewJavascriptBridge%2FWebViewJavascriptBridge.js.txt#L18
This is the relevant code.
But what confuse me is, what is the iframe for? It seems that the iframe do nothing in the js code (Only set the src.)
Hope reply soon, thanks.
Hi, WebViewJavascriptBridge is cool. But I have an odd trouble.
There is an ajax request (XHR) in my website. When I inject the WebViewJavascriptBridge js code. The request was broken.
https://github.com/marcuswestin/WebViewJavascriptBridge/blob/master/WebViewJavascriptBridge%2FWebViewJavascriptBridge.js.txt#L18
This is the relevant code.
But what confuse me is, what is the iframe for? It seems that the iframe do nothing in the js code (Only set the
src.)Hope reply soon, thanks.