Skip to content

Commit 6665eac

Browse files
author
Andres Olave
committed
Add support for trigger.io
1 parent 592a916 commit 6665eac

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

js/utils/platform.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@
115115

116116
if (this.isWebView()) {
117117
this.platforms.push('webview');
118-
this.platforms.push('cordova');
118+
if(!(!window.cordova && !window.PhoneGap && !window.phonegap)) {
119+
this.platforms.push('cordova');
120+
} else if(!!window.forge) {
121+
this.platforms.push('trigger');
122+
}
119123
} else {
120124
this.platforms.push('browser');
121125
}
@@ -153,7 +157,7 @@
153157
* @returns {boolean} Check if we are running within a WebView (such as Cordova).
154158
*/
155159
isWebView: function() {
156-
return !(!window.cordova && !window.PhoneGap && !window.phonegap);
160+
return !(!window.cordova && !window.PhoneGap && !window.phonegap && !window.forge);
157161
},
158162
/**
159163
* @ngdoc method

0 commit comments

Comments
 (0)