diff options
author | Alex Yatskov <alex@foosoft.net> | 2017-03-25 09:45:05 -0700 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2017-03-25 09:45:05 -0700 |
commit | 4e5ded5735f353428ad0497923d43e9bd3db8645 (patch) | |
tree | fb8c46cab9262ff20c7c36549b555321dff4d192 /ext/mixed/js | |
parent | 5989c5faae2467135bef222da886aed41e023d33 (diff) |
fix audio playback bug
Diffstat (limited to 'ext/mixed/js')
-rw-r--r-- | ext/mixed/js/display.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/mixed/js/display.js b/ext/mixed/js/display.js index 39ad41a3..c7f20a92 100644 --- a/ext/mixed/js/display.js +++ b/ext/mixed/js/display.js @@ -337,8 +337,8 @@ class Display { for (const row of dom.getElementsByClassName('dc-result-row')) { try { const url = row.getElementsByClassName('ill-onebuttonplayer').item(0).getAttribute('data-url'); - const expression = dom.getElementsByClassName('dc-vocab').item(0).innerText; - const reading = dom.getElementsByClassName('dc-vocab_kana').item(0).innerText; + const expression = row.getElementsByClassName('dc-vocab').item(0).innerText; + const reading = row.getElementsByClassName('dc-vocab_kana').item(0).innerText; if (url && expression && reading) { entries.push({url, expression, reading}); |