added option to enable and disable sound

This commit is contained in:
Kadir Sekha 2018-02-26 11:47:11 +05:00
commit f8baca943c
4 changed files with 22 additions and 1 deletions

View file

@ -607,7 +607,7 @@ angular.module('copayApp.controllers').controller('confirmController', function(
(processName == 'sendingTx' && !$scope.wallet.canSign() && !$scope.wallet.isPrivKeyExternal())
) && !isOn) {
$scope.sendStatus = 'success';
if ($scope.wallet.coin == 'bch') {
if (config.soundsEnabled && $scope.wallet.coin == 'bch') {
var audio = new Audio('misc/bch_sent.mp3');
audio.play();
}