Update index2.ts (#9720)

Fix typo
pull/9722/head
sdflysha 2018-11-28 11:05:05 +08:00 committed by Scott Addie
parent 70a9189c02
commit eeb7184ed4
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ connection.on("messageReceived", (username: string, message: string) => {
let m = document.createElement("div");
m.innerHTML =
`<div class="message__author">${username}</div><div>${message}</div>`;
`<div class="message-author">${username}</div><div>${message}</div>`;
divMessages.appendChild(m);
divMessages.scrollTop = divMessages.scrollHeight;
@ -34,4 +34,4 @@ btnSend.addEventListener("click", send);
function send() {
}
// </snippet_IndexTsPhase2File>
// </snippet_IndexTsPhase2File>