Skip to content

Commit

Permalink
only update input if prelogin present, dont focus
Browse files Browse the repository at this point in the history
  • Loading branch information
shadedred committed Nov 24, 2024
1 parent 8679b3e commit ebb7487
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assets/chat/js/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,10 +636,12 @@ class Chat {
}

setPreLoginText() {
const chatText = ChatStore.read('chat.preLoginText') || '';
const chatText = ChatStore.read('chat.preLoginText');
if (chatText === null) {
return;
}
this.input.val(chatText);
ChatStore.remove('chat.preLoginText');
this.input.focus();
}

setEmotes(emotes) {
Expand Down

0 comments on commit ebb7487

Please sign in to comment.