Build Copay for OSX, Linux and Windows
This commit is contained in:
parent
f14aeaef0c
commit
c0b496c7e7
15 changed files with 759 additions and 101 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.services').factory('go', function($window, $rootScope, $location, $state, profileService) {
|
||||
angular.module('copayApp.services').factory('go', function($window, $rootScope, $location, $state, profileService, nodeWebkit) {
|
||||
var root = {};
|
||||
|
||||
var hideSidebars = function() {
|
||||
|
|
@ -30,7 +30,12 @@ angular.module('copayApp.services').factory('go', function($window, $rootScope,
|
|||
};
|
||||
|
||||
root.openExternalLink = function(url) {
|
||||
var ref = window.open(url, '_blank', 'location=no');
|
||||
if (nodeWebkit.isDefined()) {
|
||||
nodeWebkit.openExternalLink(url);
|
||||
}
|
||||
else {
|
||||
var ref = window.open(url, '_blank', 'location=no');
|
||||
}
|
||||
};
|
||||
|
||||
root.path = function(path, cb) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue