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
committerGitHub <noreply@github.com>2021-08-02 19:25:10 -0400
commitedb0aaf6b4fbaed298f81778ced68990ab4f5b9a (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();