diff --git a/web/app/assets/javascripts/everywhere/everywhere.js b/web/app/assets/javascripts/everywhere/everywhere.js index 71392a7e9..2af34de2c 100644 --- a/web/app/assets/javascripts/everywhere/everywhere.js +++ b/web/app/assets/javascripts/everywhere/everywhere.js @@ -93,15 +93,18 @@ // wait 10 seconds function checkAudioStopped() { - context.jamClient.ResetPageCounters(); + if(context.jamClient.ResetPageCounters) { + // upgrade concern + context.jamClient.ResetPageCounters(); - context.JK.AudioStopTimeout = setTimeout(function() { + context.JK.AudioStopTimeout = setTimeout(function() { - if(context.jamClient.IsAudioStarted()) { - logger.debug("checkAudioStopped: stopping audio ...") - context.jamClient.StopAudio(); - } - }, 10000); + if(context.jamClient.IsAudioStarted()) { + logger.debug("checkAudioStopped: stopping audio ...") + context.jamClient.StopAudio(); + } + }, 10000); + } } })(window, jQuery); \ No newline at end of file