mirror of
https://github.com/Threnklyn/MinecraftChat.git
synced 2026-05-18 20:33:28 +02:00
Chat formatting
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Connect Controller
|
||||
*/
|
||||
|
||||
module.exports = function($scope, socket) {
|
||||
|
||||
$scope.chat = '';
|
||||
|
||||
$scope.send = function() {
|
||||
if ($scope.chat.trim().length > 0) {
|
||||
|
||||
socket.emit('chat', {
|
||||
message: $scope.chat.trim()
|
||||
});
|
||||
$scope.chat = '';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user