From 0232325f960b1fbe41e03f74a46fb18a7abf33f7 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 26 May 2021 20:38:15 -0400 Subject: Refactor json audio source (#1711) * Move sources to the end of audio options object * Add custom-json audio source type * Add support for downloading custom-json * Remove customSourceType --- ext/js/background/backend.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/js/background') diff --git a/ext/js/background/backend.js b/ext/js/background/backend.js index 2368b5d0..ba310d93 100644 --- a/ext/js/background/backend.js +++ b/ext/js/background/backend.js @@ -1742,7 +1742,7 @@ class Backend { return null; } - const {sources, preferredAudioIndex, customSourceUrl, customSourceType} = details; + const {sources, preferredAudioIndex, customSourceUrl} = details; let data; let contentType; try { @@ -1754,7 +1754,6 @@ class Backend { { textToSpeechVoice: null, customSourceUrl, - customSourceType, binary: true, disableCache: true } -- cgit v1.2.3