aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display-audio.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-12-16 20:04:56 -0500
committerGitHub <noreply@github.com>2023-12-17 01:04:56 +0000
commitb249627434d3a94420ac4d98c3ce720767e57b43 (patch)
treeec46e2c020c5a63a5c2babf56376f53e288ed7f2 /ext/js/display/display-audio.js
parentdecbc60f7734e739c0e5c41da294f65f9eec92fe (diff)
Update eslint spacing rules (#366)
* Add space-infix-ops rule * Add no-multi-spaces --------- Co-authored-by: Darius Jahandarie <djahandarie@gmail.com>
Diffstat (limited to 'ext/js/display/display-audio.js')
-rw-r--r--ext/js/display/display-audio.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/js/display/display-audio.js b/ext/js/display/display-audio.js
index 1f279030..8cd1ccc3 100644
--- a/ext/js/display/display-audio.js
+++ b/ext/js/display/display-audio.js
@@ -83,6 +83,7 @@ export class DisplayAudio {
/** */
prepare() {
this._audioSystem.prepare();
+ /* eslint-disable no-multi-spaces */
this._display.hotkeyHandler.registerActions([
['playAudio', this._onHotkeyActionPlayAudio.bind(this)],
['playAudioFromSource', this._onHotkeyActionPlayAudioFromSource.bind(this)]
@@ -90,6 +91,7 @@ export class DisplayAudio {
this._display.registerDirectMessageHandlers([
['Display.clearAutoPlayTimer', {async: false, handler: this._onMessageClearAutoPlayTimer.bind(this)}]
]);
+ /* eslint-enable no-multi-spaces */
this._display.on('optionsUpdated', this._onOptionsUpdated.bind(this));
this._display.on('contentClear', this._onContentClear.bind(this));
this._display.on('contentUpdateEntry', this._onContentUpdateEntry.bind(this));
@@ -120,7 +122,7 @@ export class DisplayAudio {
* @param {number} headwordIndex
* @param {?string} [sourceType]
*/
- async playAudio(dictionaryEntryIndex, headwordIndex, sourceType=null) {
+ async playAudio(dictionaryEntryIndex, headwordIndex, sourceType = null) {
let sources = this._audioSources;
if (sourceType !== null) {
sources = [];