Fix: beep when incoming a new transaction

This commit is contained in:
Gustavo Cortez 2014-06-02 22:21:01 -03:00
parent 7aebf032ef
commit 0a80fcc896
1 changed files with 1 additions and 2 deletions

View File

@ -20,8 +20,6 @@ angular.module('copay.header').controller('HeaderController',
'icon': 'fi-archive', 'icon': 'fi-archive',
'link': '#/backup' 'link': '#/backup'
}]; }];
var beep = new Audio('sound/transaction.mp3');
$http.get('https://api.github.com/repos/bitpay/copay/tags').success(function(data){ $http.get('https://api.github.com/repos/bitpay/copay/tags').success(function(data){
var toInt = function (s) { return parseInt(s); }; var toInt = function (s) { return parseInt(s); };
@ -54,6 +52,7 @@ angular.module('copay.header').controller('HeaderController',
} }
} }
if (currentAddr) { if (currentAddr) {
var beep = new Audio('sound/transaction.mp3');
$notification.funds('Received fund', currentAddr, receivedFund); $notification.funds('Received fund', currentAddr, receivedFund);
beep.play(); beep.play();
} }