Use externalLinkService

This commit is contained in:
Sebastiaan Pasma 2018-05-23 11:16:10 +02:00 committed by Sebastiaan Pasma
commit af5a843e8a
2 changed files with 3 additions and 7 deletions

View file

@ -155,12 +155,8 @@ angular.module('copayApp.controllers').controller('tabHomeController',
externalLinkService.open(url, optIn, title, message, okText, cancelText);
};
$scope.openURL = function(url) {
if (platformInfo.isNW) {
require('nw.gui').Shell.openExternal( url );
} else {
window.open(url, '_system');
}
$scope.openStore = function() {
externalLinkService.open('https://store.bitcoin.com/', false);
};
$scope.openNotificationModal = function(n) {