First stab at CB-21, I really need more info before I can close this

This commit is contained in:
Joe Bowser 2012-03-20 15:22:00 -07:00
parent bbf10e3baa
commit a688319ea7

View File

@ -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