Skip to content

Commit

Permalink
Fix for Issue #179: Android ChildBrowser openExternal DroidGap option…
Browse files Browse the repository at this point in the history
… broken
  • Loading branch information
macdonst authored and Jesse MacFadyen committed Oct 20, 2011
1 parent cc12250 commit 9c9bdb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Android/ChildBrowser/www/childbrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ ChildBrowser.prototype.close = function() {
* @param usePhoneGap Load url in PhoneGap webview [optional]
*/
ChildBrowser.prototype.openExternal = function(url, usePhoneGap) {
PhoneGap.exec(null, null, "ChildBrowser", "openExternal", [url, usePhoneGap]);
if (usePhoneGap === true) {
navigator.app.loadUrl(url);
}
else {
PhoneGap.exec(null, null, "ChildBrowser", "openExternal", [url, usePhoneGap]);
}
};

/**
Expand Down

0 comments on commit 9c9bdb6

Please sign in to comment.