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.
2 parents b2f8398 + 4a4afb8 commit f766ff4Copy full SHA for f766ff4
js/utils/platform.js
@@ -150,7 +150,11 @@
150
151
if (self.isWebView()) {
152
self.platforms.push('webview');
153
- self.platforms.push('cordova');
+ if(!(!window.cordova && !window.PhoneGap && !window.phonegap)) {
154
+ self.platforms.push('cordova');
155
+ } else if(!!window.forge) {
156
+ self.platforms.push('trigger');
157
+ }
158
} else {
159
self.platforms.push('browser');
160
}
@@ -188,7 +192,7 @@
188
192
* @returns {boolean} Check if we are running within a WebView (such as Cordova).
189
193
*/
190
194
isWebView: function() {
191
- return !(!window.cordova && !window.PhoneGap && !window.phonegap);
195
+ return !(!window.cordova && !window.PhoneGap && !window.phonegap && !window.forge);
196
},
197
/**
198
* @ngdoc method
0 commit comments