Skip to content

Commit

Permalink
Resolve trigger.io - forge.js conflict
Browse files Browse the repository at this point in the history
Fix for issue #3903
  • Loading branch information
pbakondy committed Jul 3, 2015
1 parent 4f703ff commit c51351c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/utils/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
self.platforms.push('webview');
if (!(!window.cordova && !window.PhoneGap && !window.phonegap)) {
self.platforms.push('cordova');
} else if (window.forge) {
} else if (typeof window.forge === 'object') {
self.platforms.push('trigger');
}
} else {
Expand Down Expand Up @@ -192,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 && !window.forge);
return !(!window.cordova && !window.PhoneGap && !window.phonegap && window.forge !== 'object');
},
/**
* @ngdoc method
Expand Down

0 comments on commit c51351c

Please sign in to comment.