Merge pull request #3315 from cmgustavo/bug/isChromeApp01

Bug/is chrome app01
This commit is contained in:
Matias Alejo Garcia 2015-10-20 13:04:28 -03:00
commit e5171c82d0
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
'use strict';
angular.module('copayApp.services').value('isChromeApp', !!(window.chrome && chrome.runtime && chrome.runtime.id));
angular.module('copayApp.services').factory('isChromeApp', function(nodeWebkit) {
return !!(window.chrome && chrome.runtime && chrome.runtime.id && !nodeWebkit.isDefined());
});