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 592a916 commit 6665eacCopy full SHA for 6665eac
js/utils/platform.js
@@ -115,7 +115,11 @@
115
116
if (this.isWebView()) {
117
this.platforms.push('webview');
118
- this.platforms.push('cordova');
+ if(!(!window.cordova && !window.PhoneGap && !window.phonegap)) {
119
+ this.platforms.push('cordova');
120
+ } else if(!!window.forge) {
121
+ this.platforms.push('trigger');
122
+ }
123
} else {
124
this.platforms.push('browser');
125
}
@@ -153,7 +157,7 @@
153
157
* @returns {boolean} Check if we are running within a WebView (such as Cordova).
154
158
*/
155
159
isWebView: function() {
156
- return !(!window.cordova && !window.PhoneGap && !window.phonegap);
160
+ return !(!window.cordova && !window.PhoneGap && !window.phonegap && !window.forge);
161
},
162
/**
163
* @ngdoc method
0 commit comments