aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display-audio.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-19 07:30:17 -0500
committerGitHub <noreply@github.com>2024-02-19 12:30:17 +0000
commit2da866f982930c76d2317a3be426410683ecf5a2 (patch)
treee77ce545177ba398068cb63037096a56dea04e2c /ext/js/display/display-audio.js
parent65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff)
Update eslint rules (#710)
Diffstat (limited to 'ext/js/display/display-audio.js')
-rw-r--r--ext/js/display/display-audio.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/js/display/display-audio.js b/ext/js/display/display-audio.js
index 5f4131d0..d19a448c 100644
--- a/ext/js/display/display-audio.js
+++ b/ext/js/display/display-audio.js
@@ -225,7 +225,7 @@ export class DisplayAudio {
const callback = () => {
this._autoPlayAudioTimer = null;
- this.playAudio(0, 0);
+ void this.playAudio(0, 0);
};
if (this._autoPlayAudioDelay > 0) {
@@ -248,7 +248,7 @@ export class DisplayAudio {
/** */
_onHotkeyActionPlayAudio() {
- this.playAudio(this._display.selectedIndex, 0);
+ void this.playAudio(this._display.selectedIndex, 0);
}
/**
@@ -256,7 +256,7 @@ export class DisplayAudio {
*/
_onHotkeyActionPlayAudioFromSource(source) {
if (!(typeof source === 'string' || typeof source === 'undefined' || source === null)) { return; }
- this.playAudio(this._display.selectedIndex, 0, source);
+ void this.playAudio(this._display.selectedIndex, 0, source);
}
/** @type {import('display').DirectApiHandler<'displayAudioClearAutoPlayTimer'>} */
@@ -317,7 +317,7 @@ export class DisplayAudio {
if (e.shiftKey) {
this._showAudioMenu(button, dictionaryEntryIndex, headwordIndex);
} else {
- this.playAudio(dictionaryEntryIndex, headwordIndex);
+ void this.playAudio(dictionaryEntryIndex, headwordIndex);
}
}
@@ -348,7 +348,7 @@ export class DisplayAudio {
if (shiftKey) {
e.preventDefault();
}
- this._playAudioFromSource(dictionaryEntryIndex, headwordIndex, item);
+ void this._playAudioFromSource(dictionaryEntryIndex, headwordIndex, item);
break;
case 'setPrimaryAudio':
e.preventDefault();