fix audio mining
This commit is contained in:
1 parent
d18096f09f
commit
f551812a61
1 file changed
+2
-1
+2
-1
@@ -1960,6 +1960,7 @@ async function mine_to_storage(object)
|
||||
|
||||
function get_audio_text(mydiv, index = 0) // [reading, spelling]
|
||||
{
|
||||
mydiv = mydiv.getElementsByClassName("nazeka_audioref")[index]
|
||||
if(mydiv)
|
||||
{
|
||||
let text = mydiv.innerText;
|
||||
@@ -1978,7 +1979,7 @@ async function try_to_play_audio(index = 0)
|
||||
{
|
||||
if(!exists_div())
|
||||
return;
|
||||
let mydiv = get_div().getElementsByClassName("nazeka_audioref")[index];
|
||||
let mydiv = get_div();
|
||||
let fields = get_audio_text(mydiv, index);
|
||||
if(fields)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user