Skip to content

Commit

Permalink
kagura.Sounder autokill bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nakasyou committed Dec 28, 2022
1 parent ab22e93 commit a622256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/sounder.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class{
constructor(url){
this.url=url;
}
make(){
make(autokill=true){
return new (class{
constructor(url,autokill=true){
this.elem=document.createElement("audio");
Expand Down Expand Up @@ -50,6 +50,6 @@ class{
this.elem.remove();
delete this.elem;
}
})(this.url);
})(this.url,autokill);
}
}

0 comments on commit a622256

Please sign in to comment.