MOBILE-3401 iab: Fix override window.open in iOS

main
Dani Palou 2020-06-15 08:57:51 +02:00
parent 206745909d
commit 46b8211442
1 changed files with 7 additions and 5 deletions

View File

@ -86,12 +86,14 @@ export class CoreUtilsProvider {
protected qrScanner: QRScanner) {
this.logger = logger.getInstance('CoreUtilsProvider');
const win = <any> window;
this.platform.ready().then(() => {
const win = <any> window;
if (win.cordova && win.cordova.InAppBrowser) {
// Override the default window.open with the InAppBrowser one.
win.open = win.cordova.InAppBrowser.open;
}
if (win.cordova && win.cordova.InAppBrowser) {
// Override the default window.open with the InAppBrowser one.
win.open = win.cordova.InAppBrowser.open;
}
});
}
/**