aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display-audio.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-08-02 19:25:10 -0400
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-08-08 16:04:41 -0400
commitb590a147015df21eec02054eb542ff23f2a4c0ef (patch)
tree977cd3e1f74f99014b274fb7009fd1aab8fadd77 /ext/js/display/display-audio.js
parentb0df8045f6b749208a1e34fc43a46828a490d604 (diff)
Improve audio auto play cancellation (#1873)
* Cancel automatic audio playback when hiding the popup * Don't play audio if the popup is hidden
Diffstat (limited to 'ext/js/display/display-audio.js')
-rw-r--r--ext/js/display/display-audio.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/display/display-audio.js b/ext/js/display/display-audio.js
index e5c1b135..972d90b6 100644
--- a/ext/js/display/display-audio.js
+++ b/ext/js/display/display-audio.js
@@ -77,7 +77,7 @@ class DisplayAudio {
}
setupEntriesComplete() {
- if (!this._autoPlay) { return; }
+ if (!this._autoPlay || !this._display.popupVisible) { return; }
this.clearAutoPlayTimer();