fix audio playback bug
This commit is contained in:
parent
5989c5faae
commit
4e5ded5735
@ -337,8 +337,8 @@ class Display {
|
|||||||
for (const row of dom.getElementsByClassName('dc-result-row')) {
|
for (const row of dom.getElementsByClassName('dc-result-row')) {
|
||||||
try {
|
try {
|
||||||
const url = row.getElementsByClassName('ill-onebuttonplayer').item(0).getAttribute('data-url');
|
const url = row.getElementsByClassName('ill-onebuttonplayer').item(0).getAttribute('data-url');
|
||||||
const expression = dom.getElementsByClassName('dc-vocab').item(0).innerText;
|
const expression = row.getElementsByClassName('dc-vocab').item(0).innerText;
|
||||||
const reading = dom.getElementsByClassName('dc-vocab_kana').item(0).innerText;
|
const reading = row.getElementsByClassName('dc-vocab_kana').item(0).innerText;
|
||||||
|
|
||||||
if (url && expression && reading) {
|
if (url && expression && reading) {
|
||||||
entries.push({url, expression, reading});
|
entries.push({url, expression, reading});
|
||||||
|
Loading…
Reference in New Issue
Block a user