Skip to content

Commit 64be1c9

Browse files
authored
docs(examples): fix chat example (#3787)
1 parent 1a72ae4 commit 64be1c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/chat/public/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $(function() {
7272
}
7373

7474
// Adds the visual chat message to the message list
75-
const addChatMessage = (data, options) => {
75+
const addChatMessage = (data, options = {}) => {
7676
// Don't fade the message in if there is an 'X was typing'
7777
const $typingMessages = getTypingMessages(data);
7878
if ($typingMessages.length !== 0) {

0 commit comments

Comments
 (0)