Don't play audio if volume set to zero (prevent podcast pausing)

This commit is contained in:
Skylar Ittner 2022-08-31 13:42:07 -06:00
parent 77da43f2bc
commit fd0232a694

View File

@ -42,6 +42,9 @@ function playSound(sound) {
if (sfx[sound] == false) {
return;
}
if (sfx[sound].volume == 0) {
return;
}
sfx[sound].play();
}