Use externalLinkService
This commit is contained in:
parent
082686def6
commit
af5a843e8a
2 changed files with 3 additions and 7 deletions
|
|
@ -155,12 +155,8 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
||||||
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
externalLinkService.open(url, optIn, title, message, okText, cancelText);
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openURL = function(url) {
|
$scope.openStore = function() {
|
||||||
if (platformInfo.isNW) {
|
externalLinkService.open('https://store.bitcoin.com/', false);
|
||||||
require('nw.gui').Shell.openExternal( url );
|
|
||||||
} else {
|
|
||||||
window.open(url, '_system');
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.openNotificationModal = function(n) {
|
$scope.openNotificationModal = function(n) {
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="list card card-banner">
|
<div class="list card card-banner">
|
||||||
<a ng-click="openURL('https://store.bitcoin.com/')">
|
<a ng-click="openStore()">
|
||||||
<img class="card-banner__img" src="img/banner-store.png"/>
|
<img class="card-banner__img" src="img/banner-store.png"/>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue