We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2067459 commit 46b8211Copy full SHA for 46b8211
src/providers/utils/utils.ts
@@ -86,12 +86,14 @@ export class CoreUtilsProvider {
86
protected qrScanner: QRScanner) {
87
this.logger = logger.getInstance('CoreUtilsProvider');
88
89
- const win = <any> window;
+ this.platform.ready().then(() => {
90
+ const win = <any> window;
91
- if (win.cordova && win.cordova.InAppBrowser) {
92
- // Override the default window.open with the InAppBrowser one.
93
- win.open = win.cordova.InAppBrowser.open;
94
- }
+ if (win.cordova && win.cordova.InAppBrowser) {
+ // Override the default window.open with the InAppBrowser one.
+ win.open = win.cordova.InAppBrowser.open;
95
+ }
96
+ });
97
}
98
99
/**
0 commit comments