From efd35de67f6700ecf4f49a87d310d99cefbaa328 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 30 May 2021 12:15:07 -0400 Subject: Refactor display audio options (#1717) * Update how options are updated and stored in DisplayAudio * Add source list * Improve menus for custom json * Clear cache after options update * Move function * Update public API * Simplify playing audio from a specific source * Simplify audio list * Refactor audio source usage * Refactoring * Refactor argument names * Fix incorrect source usage * Remove unused * Remove return value * Simplify details * Simplify Anki card audio details * Update the data that is passed to AudioDownloader * Simplify schema handling * Remove unnecessary details --- ext/js/comm/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/comm') diff --git a/ext/js/comm/api.js b/ext/js/comm/api.js index 3795dcf4..7e77180e 100644 --- a/ext/js/comm/api.js +++ b/ext/js/comm/api.js @@ -68,8 +68,8 @@ class API { return this._invoke('suspendAnkiCardsForNote', {noteId}); } - getTermAudioInfoList(source, term, reading, details) { - return this._invoke('getTermAudioInfoList', {source, term, reading, details}); + getTermAudioInfoList(source, term, reading) { + return this._invoke('getTermAudioInfoList', {source, term, reading}); } commandExec(command, params) { -- cgit v1.2.3