Fix incorrect selector
This commit is contained in:
parent
f969b5b8a9
commit
6c344b2740
@ -175,7 +175,7 @@ class Display {
|
|||||||
const link = e.currentTarget;
|
const link = e.currentTarget;
|
||||||
const entry = link.closest('.entry');
|
const entry = link.closest('.entry');
|
||||||
const definitionIndex = this.entryIndexFind(entry);
|
const definitionIndex = this.entryIndexFind(entry);
|
||||||
const expressionIndex = Display.indexOf(entry.querySelectorAll('.expression .action-play-audio'), link);
|
const expressionIndex = Display.indexOf(entry.querySelectorAll('.term-expression .action-play-audio'), link);
|
||||||
this.audioPlay(this.definitions[definitionIndex], expressionIndex, definitionIndex);
|
this.audioPlay(this.definitions[definitionIndex], expressionIndex, definitionIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user