Skip to content

Commit

Permalink
Merge pull request #3301 from sloops77/master
Browse files Browse the repository at this point in the history
feat(platform): recognize trigger.io as a webView platform
  • Loading branch information
perrygovier committed Mar 27, 2015
2 parents b2f8398 + 4a4afb8 commit f766ff4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/utils/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,11 @@

if (self.isWebView()) {
self.platforms.push('webview');
self.platforms.push('cordova');
if(!(!window.cordova && !window.PhoneGap && !window.phonegap)) {
self.platforms.push('cordova');
} else if(!!window.forge) {
self.platforms.push('trigger');
}
} else {
self.platforms.push('browser');
}
Expand Down Expand Up @@ -188,7 +192,7 @@
* @returns {boolean} Check if we are running within a WebView (such as Cordova).
*/
isWebView: function() {
return !(!window.cordova && !window.PhoneGap && !window.phonegap);
return !(!window.cordova && !window.PhoneGap && !window.phonegap && !window.forge);
},
/**
* @ngdoc method
Expand Down

0 comments on commit f766ff4

Please sign in to comment.