summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2017-03-25 09:45:05 -0700
committerAlex Yatskov <alex@foosoft.net>2017-03-25 09:45:05 -0700
commit4e5ded5735f353428ad0497923d43e9bd3db8645 (patch)
treefb8c46cab9262ff20c7c36549b555321dff4d192 /ext
parent5989c5faae2467135bef222da886aed41e023d33 (diff)
fix audio playback bug
Diffstat (limited to 'ext')
-rw-r--r--ext/mixed/js/display.js4
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});