diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-23 11:58:17 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-23 11:58:17 -0500 |
commit | 5a5c18371ca6df5473f9d5ef9a391acde6c2e168 (patch) | |
tree | 5c73ece15c7f89cea2c0f55b1117bd148be7e654 /ext/bg/js/audio.js | |
parent | 53220af68eabdda27b35224056f3bd589e8c4785 (diff) |
Use textContent instead of innerText
Diffstat (limited to 'ext/bg/js/audio.js')
-rw-r--r-- | ext/bg/js/audio.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/audio.js b/ext/bg/js/audio.js index 0ecfd5c4..d300570b 100644 --- a/ext/bg/js/audio.js +++ b/ext/bg/js/audio.js @@ -52,7 +52,7 @@ const audioUrlBuilders = new Map([ for (const row of dom.getElementsByClassName('dc-result-row')) { try { const url = row.querySelector('audio>source[src]').getAttribute('src'); - const reading = row.getElementsByClassName('dc-vocab_kana').item(0).innerText; + const reading = row.getElementsByClassName('dc-vocab_kana').item(0).textContent; if (url && reading && (!definition.reading || definition.reading === reading)) { return audioUrlNormalize(url, 'https://www.japanesepod101.com', '/learningcenter/reference/'); } |