diff --git a/assets/js/app.js b/assets/js/app.js index 88df096..9f0c222 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -64,7 +64,11 @@ Hooks.AudioPlayer = { this.player.play().then(() => { if(sync){ this.player.currentTime = nowSeconds() - this.playbackBeganAt } this.progressTimer = setInterval(() => this.updateProgress(), 100) - }, error => execJS("#enable-audio", "data-js-show")) + }, error => { + if(error.name === "NotAllowedError"){ + execJS("#enable-audio", "data-js-show") + } + }) }, pause(){