mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-06-07 13:43:31 +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').append('<span style="color:#D62D18;">[i] Error: ' + error + '</span><br>');
|
||||||
$('#buffer').scrollTop($('#buffer').prop('scrollHeight'));
|
$('#buffer').scrollTop($('#buffer').prop('scrollHeight'));
|
||||||
sound.error();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
socket.on('bot:message', function(string) {
|
socket.on('bot:message', function(string) {
|
||||||
|
|||||||
@@ -4,14 +4,10 @@ module.exports = function() {
|
|||||||
var error = "error";
|
var error = "error";
|
||||||
|
|
||||||
createjs.Sound.registerSound("/sounds/connected.mp3", connected);
|
createjs.Sound.registerSound("/sounds/connected.mp3", connected);
|
||||||
createjs.Sound.registerSound("/sounds/error.mp3", error);
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
connected: function() {
|
connected: function() {
|
||||||
createjs.Sound.play(connected);
|
createjs.Sound.play(connected);
|
||||||
},
|
|
||||||
error: function() {
|
|
||||||
createjs.Sound.play(error);
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user