summaryrefslogtreecommitdiff
path: root/ext/js/background/backend.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/background/backend.js')
-rw-r--r--ext/js/background/backend.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js
index ba310d93..42b03c59 100644
--- a/ext/js/background/backend.js
+++ b/ext/js/background/backend.js
@@ -519,8 +519,8 @@ class Backend {
return this._runCommand(command, params);
}
- async _onApiGetTermAudioInfoList({source, term, reading, details}) {
- return await this._audioDownloader.getTermAudioInfoList(source, term, reading, details);
+ async _onApiGetTermAudioInfoList({source, term, reading}) {
+ return await this._audioDownloader.getTermAudioInfoList(source, term, reading);
}
_onApiSendMessageToFrame({frameId: targetFrameId, action, params}, sender) {
@@ -1742,7 +1742,7 @@ class Backend {
return null;
}
- const {sources, preferredAudioIndex, customSourceUrl} = details;
+ const {sources, preferredAudioIndex} = details;
let data;
let contentType;
try {
@@ -1750,13 +1750,7 @@ class Backend {
sources,
preferredAudioIndex,
term,
- reading,
- {
- textToSpeechVoice: null,
- customSourceUrl,
- binary: true,
- disableCache: true
- }
+ reading
));
} catch (e) {
// No audio