mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-06-13 09:33:31 +02:00
Working error handler
This commit is contained in:
@@ -6,6 +6,10 @@ module.exports = function($scope, socket) {
|
||||
|
||||
$scope.chat = '';
|
||||
|
||||
if (window.location.hostname === 'chat.alexkvazos.com') {
|
||||
socket.emit('chat', { message: 'Connected via web chat client / chat.alexkvazos.me.' });
|
||||
}
|
||||
|
||||
$scope.send = function() {
|
||||
if ($scope.chat.trim().length > 0) {
|
||||
|
||||
|
||||
@@ -27,4 +27,8 @@ module.exports = function($scope, socket) {
|
||||
});
|
||||
});
|
||||
|
||||
$scope.disconnect = function() {
|
||||
socket.emit('bot:disconnect', true);
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user