Skip to content

Commit

Permalink
Update SoundPlayer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Xogy committed Jun 17, 2020
1 parent dd2d466 commit 6aa25a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions html/scripts/SoundPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ class SoundPlayer
ended(null);
}
});
$("body").append("<div id = '"+ this.div_id +"'>"+this.getUrlSound() +"</div>")
$("#" + this.div_id).remove();
}
else
{
Expand Down Expand Up @@ -223,6 +225,7 @@ class SoundPlayer
this.audioPlayer.pause();
this.audioPlayer = null;
}
$("#" + this.div_id).remove();
}

mute ()
Expand Down

0 comments on commit 6aa25a9

Please sign in to comment.