diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-02-20 21:16:40 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-02-20 21:16:40 -0500 |
commit | ee5e47251eb416952e0a4f8dfe923fe48565e64b (patch) | |
tree | f21d87c0f4f76d1686068853f4a0091a865f5f51 | |
parent | b58b91d3fce466457521b87dda850c8514c5e381 (diff) |
Rename normalizeAudioUrl to audioUrlNormalize
-rw-r--r-- | ext/bg/js/audio.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/audio.js b/ext/bg/js/audio.js index c93b7550..2e5db7cc 100644 --- a/ext/bg/js/audio.js +++ b/ext/bg/js/audio.js @@ -72,7 +72,7 @@ async function audioBuildUrl(definition, mode, cache={}) { const url = row.querySelector('audio>source[src]').getAttribute('src'); const reading = row.getElementsByClassName('dc-vocab_kana').item(0).innerText; if (url && reading && (!definition.reading || definition.reading === reading)) { - return normalizeAudioUrl(url, 'https://www.japanesepod101.com', '/learningcenter/reference/'); + return audioUrlNormalize(url, 'https://www.japanesepod101.com', '/learningcenter/reference/'); } } catch (e) { // NOP @@ -102,7 +102,7 @@ async function audioBuildUrl(definition, mode, cache={}) { if (audio) { const url = audio.getElementsByTagName('source').item(0).getAttribute('src'); if (url) { - return normalizeAudioUrl(url, 'https://jisho.org', '/search/'); + return audioUrlNormalize(url, 'https://jisho.org', '/search/'); } } } catch (e) { @@ -115,7 +115,7 @@ async function audioBuildUrl(definition, mode, cache={}) { } } -function normalizeAudioUrl(url, baseUrl, basePath) { +function audioUrlNormalize(url, baseUrl, basePath) { if (url) { if (url[0] === '/') { if (url.length >= 2 && url[1] === '/') { |