mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-18 05:30:06 -05:00
Safely stop sounds in safari
This commit is contained in:
parent
e57484c2f5
commit
283049e514
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class SoundPlayer {
|
|||
* Stop the sound
|
||||
*/
|
||||
stop () {
|
||||
if (this.bufferSource) {
|
||||
if (this.bufferSource && this.isPlaying) {
|
||||
this.bufferSource.stop();
|
||||
}
|
||||
this.isPlaying = false;
|
||||
|
|
Loading…
Reference in a new issue