aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/audio-controller.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/pages/settings/audio-controller.js
parent65fa65fc7765bc9a6557d3ce6f8bdcef5b5e0cf7 (diff)
Update eslint rules (#710)
Diffstat (limited to 'ext/js/pages/settings/audio-controller.js')
-rw-r--r--ext/js/pages/settings/audio-controller.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/js/pages/settings/audio-controller.js b/ext/js/pages/settings/audio-controller.js
index 5b597d33..ab7e377c 100644
--- a/ext/js/pages/settings/audio-controller.js
+++ b/ext/js/pages/settings/audio-controller.js
@@ -134,7 +134,7 @@ export class AudioController extends EventDispatcher {
/** */
_onAddAudioSource() {
- this._addAudioSource();
+ void this._addAudioSource();
}
/** */
@@ -145,7 +145,7 @@ export class AudioController extends EventDispatcher {
const voiceUri = input.dataset.voice;
const audio = this._audioSystem.createTextToSpeechAudio(text, typeof voiceUri === 'string' ? voiceUri : '');
audio.volume = 1;
- audio.play();
+ void audio.play();
} catch (e) {
// NOP
}
@@ -352,7 +352,7 @@ class AudioSourceEntry {
const element = /** @type {HTMLSelectElement} */ (e.currentTarget);
const value = this._normalizeAudioSourceType(element.value);
if (value === null) { return; }
- this._setType(value);
+ void this._setType(value);
}
/**
@@ -360,7 +360,7 @@ class AudioSourceEntry {
*/
_onUrlInputChange(e) {
const element = /** @type {HTMLInputElement} */ (e.currentTarget);
- this._setUrl(element.value);
+ void this._setUrl(element.value);
}
/**
@@ -368,7 +368,7 @@ class AudioSourceEntry {
*/
_onVoiceSelectChange(e) {
const element = /** @type {HTMLSelectElement} */ (e.currentTarget);
- this._setVoice(element.value);
+ void this._setVoice(element.value);
}
/**
@@ -403,7 +403,7 @@ class AudioSourceEntry {
this._showHelp(this._type);
break;
case 'remove':
- this._parent.removeSource(this);
+ void this._parent.removeSource(this);
break;
}
}