You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/02/12 10:57:53 UTC

[GitHub] dpa99c commented on issue #399: window.open crashed mobile app

dpa99c commented on issue #399: window.open crashed mobile app
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/399#issuecomment-462714707
 
 
   So you are running this to load `test.html` into the main Cordova app Webview?
   
       window.open(cordova.file.dataDirectory+"/test.html", "_self");
   
   And presumably you have set:
   
       window.open = cordova.InAppBrowser.open;
   
   If that's what you want to do (which seems a really bad idea), then use this:
   
       window.location = cordova.file.dataDirectory+"/test.html"
   
   This plugin is not designed to be used to control the main app Webview, 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org