mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
First stab at CB-21, I really need more info before I can close this
This commit is contained in:
parent
bbf10e3baa
commit
a688319ea7
@ -218,6 +218,7 @@ public class CordovaWebViewClient extends WebViewClient {
|
||||
// from the JS side when the JS gets to that code.
|
||||
if (!url.equals("about:blank")) {
|
||||
ctx.appView.loadUrl("javascript:try{ cordova.require('cordova/channel').onNativeReady.fire();}catch(e){_nativeReady = true;}");
|
||||
this.ctx.postMessage("onNativeReady", null);
|
||||
}
|
||||
|
||||
// Make app visible after 2 sec in case there was a JS error and Cordova JS never initialized correctly
|
||||
|
Loading…
Reference in New Issue
Block a user