mirror of https://github.com/BTCPrivate/copay.git
Fix: beep when incoming a new transaction
This commit is contained in:
parent
7aebf032ef
commit
0a80fcc896
|
@ -21,8 +21,6 @@ angular.module('copay.header').controller('HeaderController',
|
|||
'link': '#/backup'
|
||||
}];
|
||||
|
||||
var beep = new Audio('sound/transaction.mp3');
|
||||
|
||||
$http.get('https://api.github.com/repos/bitpay/copay/tags').success(function(data){
|
||||
var toInt = function (s) { return parseInt(s); };
|
||||
var latestVersion = data[0].name.replace('v', '').split('.').map(toInt);
|
||||
|
@ -54,6 +52,7 @@ angular.module('copay.header').controller('HeaderController',
|
|||
}
|
||||
}
|
||||
if (currentAddr) {
|
||||
var beep = new Audio('sound/transaction.mp3');
|
||||
$notification.funds('Received fund', currentAddr, receivedFund);
|
||||
beep.play();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue