diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-04-19 15:50:29 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-04-19 15:50:29 +0200 |
| commit | 03b78c302023ff296a8b4200801fa9de7291eed8 (patch) | |
| tree | ced297791326a0cb3229372e9eaf2532062aa0e9 /frontend/site/audio | |
| parent | 0231b8df6732aee5c5f254b3d15e5139800e6ea0 (diff) | |
more charles edits.. fix audio
Diffstat (limited to 'frontend/site/audio')
| -rw-r--r-- | frontend/site/audio/audio.player.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/site/audio/audio.player.js b/frontend/site/audio/audio.player.js index e6e8f44..d036347 100644 --- a/frontend/site/audio/audio.player.js +++ b/frontend/site/audio/audio.player.js @@ -39,8 +39,8 @@ export default class AudioPlayer { playPage(page) { const { background_audio_id, restart_audio, stop_all_sounds } = page.settings - // console.log('playPage', page) - if (stop_all_sounds) { + console.log('playPage', page) + if (stop_all_sounds && this.current_background_id !== background_audio_id) { Object.keys(this.players).forEach(id => this.stop(id)) } else if ( this.current_background_id |
