summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-08-27 19:24:04 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-08-27 19:24:04 -0400
commit81efda64b9ca4dbe3b1d04acbdc6e29e5ca0a563 (patch)
tree7c0608dfdee0bcddc86547b5f08df148bda68c17 /www/js
parent9c102c42405f7d6a8f6732dd2c26ef1b78067916 (diff)
#314 - lets make sure in-app sound also honors sounOnPush
Former-commit-id: ae47edb59eb12458575516d82d9843a0d01708ba
Diffstat (limited to 'www/js')
-rw-r--r--www/js/EventServer.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/www/js/EventServer.js b/www/js/EventServer.js
index 7504a3af..391c4485 100644
--- a/www/js/EventServer.js
+++ b/www/js/EventServer.js
@@ -459,8 +459,10 @@ angular.module('zmApp.controllers')
// this flag honors the HW mute button. Go figure
// http://ilee.co.uk/phonegap-plays-sound-on-mute/
- media.play({ playAudioWhenScreenIsLocked : false });
-
+ if (ld.soundOnPush)
+ {
+ media.play({ playAudioWhenScreenIsLocked : false });
+ }
var str = data.message;
// console.log ("***STRING: " + str + " " +str.status);