Don't play audio if volume set to zero (prevent podcast pausing)
This commit is contained in:
parent
77da43f2bc
commit
fd0232a694
@ -42,6 +42,9 @@ function playSound(sound) {
|
|||||||
if (sfx[sound] == false) {
|
if (sfx[sound] == false) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (sfx[sound].volume == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
sfx[sound].play();
|
sfx[sound].play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user