Fix isChromeApp and nodeWebkit
This commit is contained in:
parent
3a2fcaecbc
commit
9c871a2606
1 changed files with 3 additions and 2 deletions
|
|
@ -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 nodeWebkitFactory(nodeWebkit) {
|
||||
return !!(window.chrome && chrome.runtime && chrome.runtime.id && !nodeWebkit.isDefined());
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue