From ee5e47251eb416952e0a4f8dfe923fe48565e64b Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 20 Feb 2019 21:16:40 -0500 Subject: Rename normalizeAudioUrl to audioUrlNormalize --- ext/bg/js/audio.js | 6 +++--- 1 file 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] === '/') { -- cgit v1.2.3