Using modulemapper
This commit is contained in:
parent
3a1fea5d8b
commit
9540f11fcc
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
var cordova = require('cordova'),
|
var cordova = require('cordova'),
|
||||||
channel = require('cordova/channel'),
|
channel = require('cordova/channel'),
|
||||||
|
modulemapper = require('cordova/modulemapper'),
|
||||||
urlutil = require('cordova/urlutil');
|
urlutil = require('cordova/urlutil');
|
||||||
|
|
||||||
var browserWrap,
|
var browserWrap,
|
||||||
@ -74,7 +75,7 @@ var IAB = {
|
|||||||
if (target === "_self" || !target) {
|
if (target === "_self" || !target) {
|
||||||
window.location = strUrl;
|
window.location = strUrl;
|
||||||
} else if (target === "_system") {
|
} else if (target === "_system") {
|
||||||
window.CDV_origSymbols['window.open'].call(window, strUrl, "_blank");
|
modulemapper.getOriginalSymbol(window, 'window.open').call(window, strUrl, "_blank");
|
||||||
} else {
|
} else {
|
||||||
// "_blank" or anything else
|
// "_blank" or anything else
|
||||||
if (!browserWrap) {
|
if (!browserWrap) {
|
||||||
|
Loading…
Reference in New Issue
Block a user