mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-31 02:08:28 +02:00
Removed error sound effect
This commit is contained in:
@@ -31,7 +31,6 @@ module.exports = function(socket, sound) {
|
||||
}
|
||||
$('#buffer').append('<span style="color:#D62D18;">[i] Error: ' + error + '</span><br>');
|
||||
$('#buffer').scrollTop($('#buffer').prop('scrollHeight'));
|
||||
sound.error();
|
||||
});
|
||||
|
||||
socket.on('bot:message', function(string) {
|
||||
|
||||
@@ -4,14 +4,10 @@ module.exports = function() {
|
||||
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