Build Copay for OSX, Linux and Windows

This commit is contained in:
Gustavo Maximiliano Cortez 2015-05-28 10:52:33 -03:00
commit c0b496c7e7
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
15 changed files with 759 additions and 101 deletions

View file

@ -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) {