mirror of
https://github.com/2ec0b4/kaamelott-soundboard.git
synced 2025-12-09 08:03:24 +00:00
Permet la lecture des sons
This commit is contained in:
@@ -11,6 +11,11 @@ define(
|
||||
title: "",
|
||||
character: "",
|
||||
file: ""
|
||||
},
|
||||
play: function() {
|
||||
var audio = new Audio('sounds/'+this.attributes.file);
|
||||
|
||||
return audio.play();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user