From 9540f11fcc6983db3563b95ebb3e9c2a2be8ea35 Mon Sep 17 00:00:00 2001 From: robario Date: Fri, 18 Dec 2015 18:13:01 +0900 Subject: [PATCH] Using modulemapper --- src/browser/InAppBrowserProxy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/browser/InAppBrowserProxy.js b/src/browser/InAppBrowserProxy.js index 29912c7..a9926f6 100644 --- a/src/browser/InAppBrowserProxy.js +++ b/src/browser/InAppBrowserProxy.js @@ -21,6 +21,7 @@ var cordova = require('cordova'), channel = require('cordova/channel'), + modulemapper = require('cordova/modulemapper'), urlutil = require('cordova/urlutil'); var browserWrap, @@ -74,7 +75,7 @@ var IAB = { if (target === "_self" || !target) { window.location = strUrl; } else if (target === "_system") { - window.CDV_origSymbols['window.open'].call(window, strUrl, "_blank"); + modulemapper.getOriginalSymbol(window, 'window.open').call(window, strUrl, "_blank"); } else { // "_blank" or anything else if (!browserWrap) {