mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-28 08:48:30 +02:00
Added sound effect on login and on error
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
module.exports = function() {
|
||||
|
||||
var connected = "connected";
|
||||
var error = "error";
|
||||
|
||||
createjs.Sound.registerSound("/sounds/connected.mp3", connected);
|
||||
createjs.Sound.registerSound("/sounds/error.mp3", error);
|
||||
|
||||
return {
|
||||
connected: function() {
|
||||
createjs.Sound.play(connected);
|
||||
},
|
||||
error: function() {
|
||||
createjs.Sound.play(error);
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user