diff options
Diffstat (limited to 'www')
| -rw-r--r-- | www/js/EventServer.js | 6 |
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); |
