Skip to content

Commit

Permalink
Fix _textInputEmpty() for Chromium based browsers
Browse files Browse the repository at this point in the history
Co-authored-by: luckman212 <1992842+luckman212@users.noreply.github.com>
  • Loading branch information
schlagmichdoch and luckman212 committed May 16, 2023
1 parent 56eb29c commit 8a17b82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/scripts/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ class SendTextDialog extends Dialog {
}

_textInputEmpty() {
return this.$text.innerText === "\n";
return !this.$text.innerText || this.$text.innerText === "\n";
}

_onChange(e) {
Expand Down
2 changes: 1 addition & 1 deletion public_included_ws_fallback/scripts/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ class SendTextDialog extends Dialog {
}

_textInputEmpty() {
return this.$text.innerText === "\n";
return !this.$text.innerText || this.$text.innerText === "\n";
}

_onChange(e) {
Expand Down

0 comments on commit 8a17b82

Please sign in to comment.