mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-09 15:08:12 -05:00
docs(examples): fix chat example (#3787)
This commit is contained in:
@@ -72,7 +72,7 @@ $(function() {
|
||||
}
|
||||
|
||||
// Adds the visual chat message to the message list
|
||||
const addChatMessage = (data, options) => {
|
||||
const addChatMessage = (data, options = {}) => {
|
||||
// Don't fade the message in if there is an 'X was typing'
|
||||
const $typingMessages = getTypingMessages(data);
|
||||
if ($typingMessages.length !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user