Repository: cordova-plugin-inappbrowser
Updated Branches:
  refs/heads/master f04f37a61 -> be1f6076c


CB-7500 executeScript with callback kills/blurs inAppBrowser window on Android

github close #146


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/be1f6076
Tree: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/be1f6076
Diff: 
http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/be1f6076

Branch: refs/heads/master
Commit: be1f6076c29c3b33bc2cfc968235d852aef095d2
Parents: f04f37a
Author: sgrebnov <v-seg...@microsoft.com>
Authored: Wed Feb 3 22:49:19 2016 +0300
Committer: sgrebnov <v-seg...@microsoft.com>
Committed: Thu Feb 4 14:08:22 2016 +0300

----------------------------------------------------------------------
 src/android/InAppBrowser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/be1f6076/src/android/InAppBrowser.java
----------------------------------------------------------------------
diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java
index 6612a66..7415364 100644
--- a/src/android/InAppBrowser.java
+++ b/src/android/InAppBrowser.java
@@ -200,7 +200,7 @@ public class InAppBrowser extends CordovaPlugin {
         else if (action.equals("injectScriptCode")) {
             String jsWrapper = null;
             if (args.getBoolean(1)) {
-                jsWrapper = String.format("prompt(JSON.stringify([eval(%%s)]), 
'gap-iab://%s')", callbackContext.getCallbackId());
+                jsWrapper = 
String.format("(function(){prompt(JSON.stringify([eval(%%s)]), 
'gap-iab://%s')})()", callbackContext.getCallbackId());
             }
             injectDeferredObject(args.getString(0), jsWrapper);
         }


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

Reply via email to