aboutsummaryrefslogtreecommitdiff
path: root/ext/js/media/audio-downloader.js
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-31 08:06:52 -0700
committerGitHub <noreply@github.com>2024-05-31 15:06:52 +0000
commit76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch)
treebdba43d9ba704885383c7f308c6fe3f574c647c5 /ext/js/media/audio-downloader.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'ext/js/media/audio-downloader.js')
-rw-r--r--ext/js/media/audio-downloader.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/js/media/audio-downloader.js b/ext/js/media/audio-downloader.js
index b3d2d55c..2d1bc4ec 100644
--- a/ext/js/media/audio-downloader.js
+++ b/ext/js/media/audio-downloader.js
@@ -42,7 +42,7 @@ export class AudioDownloader {
['text-to-speech', this._getInfoTextToSpeech.bind(this)],
['text-to-speech-reading', this._getInfoTextToSpeechReading.bind(this)],
['custom', this._getInfoCustom.bind(this)],
- ['custom-json', this._getInfoCustomJson.bind(this)]
+ ['custom-json', this._getInfoCustomJson.bind(this)],
]));
}
@@ -134,7 +134,7 @@ export class AudioDownloader {
post: 'dictionary_reference',
match_type: 'exact',
search_query: term,
- vulgar: 'true'
+ vulgar: 'true',
});
const response = await this._requestBuilder.fetchAnonymous(fetchUrl, {
method: 'POST',
@@ -144,9 +144,9 @@ export class AudioDownloader {
redirect: 'follow',
referrerPolicy: 'no-referrer',
headers: {
- 'Content-Type': 'application/x-www-form-urlencoded'
+ 'Content-Type': 'application/x-www-form-urlencoded',
},
- body: data
+ body: data,
});
const responseText = await response.text();
@@ -187,7 +187,7 @@ export class AudioDownloader {
cache: 'default',
credentials: 'omit',
redirect: 'follow',
- referrerPolicy: 'no-referrer'
+ referrerPolicy: 'no-referrer',
});
const responseText = await response.text();
@@ -265,7 +265,7 @@ export class AudioDownloader {
cache: 'default',
credentials: 'omit',
redirect: 'follow',
- referrerPolicy: 'no-referrer'
+ referrerPolicy: 'no-referrer',
});
if (!response.ok) {
@@ -351,7 +351,7 @@ export class AudioDownloader {
credentials: 'omit',
redirect: 'follow',
referrerPolicy: 'no-referrer',
- signal
+ signal,
});
if (!response.ok) {
@@ -434,7 +434,7 @@ export class AudioDownloader {
cache: 'default',
credentials: 'omit',
redirect: 'follow',
- referrerPolicy: 'no-referrer'
+ referrerPolicy: 'no-referrer',
});
return await readResponseJson(response);
}