mirror of https://github.com/BTCPrivate/copay.git
Fix: beep when incoming a new transaction
This commit is contained in:
parent
7aebf032ef
commit
0a80fcc896
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue