346 - Bitcoin.com Store banner on Home tab

This commit is contained in:
Sebastiaan Pasma 2018-05-22 17:43:12 +02:00
commit 082686def6
4 changed files with 21 additions and 0 deletions

View file

@ -155,6 +155,14 @@ 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.openNotificationModal = function(n) {
wallet = profileService.getWallet(n.walletId);