Merge pull request #118 from Bitcoin-com/wallet/task/205
Improvement - 205 - Desktop clients should open websites in a browser…
This commit is contained in:
commit
ef53a19e00
2 changed files with 11 additions and 3 deletions
|
|
@ -29,7 +29,11 @@ angular.module('copayApp.controllers').controller('communityController', functio
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.open = function(url) {
|
$scope.open = function(url) {
|
||||||
window.open(url, '_system');
|
if (platformInfo.isNW) {
|
||||||
|
require('nw.gui').Shell.openExternal( url );
|
||||||
|
} else {
|
||||||
|
window.open(url, '_system');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
angular.module('copayApp.controllers').controller('nextStepsController', function($scope, nextStepsService, $ionicScrollDelegate, $timeout, configService) {
|
angular.module('copayApp.controllers').controller('nextStepsController', function($scope, nextStepsService, $ionicScrollDelegate, $timeout, platformInfo, configService) {
|
||||||
|
|
||||||
$scope.hide = false;
|
$scope.hide = false;
|
||||||
|
|
||||||
|
|
@ -22,6 +22,10 @@ angular.module('copayApp.controllers').controller('nextStepsController', functio
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.open = function(url) {
|
$scope.open = function(url) {
|
||||||
window.open(url, '_system');
|
if (platformInfo.isNW) {
|
||||||
|
require('nw.gui').Shell.openExternal( url );
|
||||||
|
} else {
|
||||||
|
window.open(url, '_system');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue