CB-7500 executeScript with callback kills/blurs inAppBrowser window on Android
github close #146
This commit is contained in:
@@ -200,7 +200,7 @@ public class InAppBrowser extends CordovaPlugin {
|
|||||||
else if (action.equals("injectScriptCode")) {
|
else if (action.equals("injectScriptCode")) {
|
||||||
String jsWrapper = null;
|
String jsWrapper = null;
|
||||||
if (args.getBoolean(1)) {
|
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);
|
injectDeferredObject(args.getString(0), jsWrapper);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user