Skip to content

Commit

Permalink
Merge pull request #4033 from pbakondy/master
Browse files Browse the repository at this point in the history
fix(): resolve trigger.io - forge.js conflict
  • Loading branch information
adamdbradley committed Jan 20, 2016
2 parents 52b4360 + c51351c commit de4ced4
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 @@ -154,7 +154,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 @@ -194,7 +194,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 de4ced4

Please sign in to comment.