diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-08-15 21:36:30 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-08-15 21:36:30 -0700 |
commit | e19933f9804abf4e64d96143bbb58f8059de5b38 (patch) | |
tree | 97a4f486203b06be4281fff20ad0dc81aa770dce /ext/bg | |
parent | e079e5f252ee39b222f3eb78e81d0a6bab6626d2 (diff) |
jisho.org audio support
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/js/api.js | 3 | ||||
-rw-r--r-- | ext/bg/js/backend.js | 4 | ||||
-rw-r--r-- | ext/bg/settings.html | 1 |
3 files changed, 8 insertions, 0 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index b55e306f..8b4c3896 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -127,3 +127,6 @@ async function apiCommandExec(command) { } } +async function apiAudioGetUrl(definition, source) { + return audioBuildUrl(definition, source); +} diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js index 6c77ba7e..9602d385 100644 --- a/ext/bg/js/backend.js +++ b/ext/bg/js/backend.js @@ -110,6 +110,10 @@ class Backend { commandExec: ({command, callback}) => { forward(apiCommandExec(command), callback); + }, + + audioGetUrl: ({definition, source, callback}) => { + forward(apiAudioGetUrl(definition, source), callback); } }; diff --git a/ext/bg/settings.html b/ext/bg/settings.html index 218f9f7d..ba155d4a 100644 --- a/ext/bg/settings.html +++ b/ext/bg/settings.html @@ -48,6 +48,7 @@ <option value="disabled">Disabled</option> <option value="jpod101">JapanesePod101</option> <option value="jpod101-alternate">JapanesePod101 (alternate)</option> + <option value="jisho">Jisho</option> </select> </div> |