Fix _textInputEmpty() for Chromium based browsers

Co-authored-by: luckman212 <1992842+luckman212@users.noreply.github.com>
This commit is contained in:
schlagmichdoch 2023-05-16 02:53:56 +02:00
parent 56eb29c91b
commit 8a17b82fa4
2 changed files with 2 additions and 2 deletions

View file

@ -1306,7 +1306,7 @@ class SendTextDialog extends Dialog {
}
_textInputEmpty() {
return this.$text.innerText === "\n";
return !this.$text.innerText || this.$text.innerText === "\n";
}
_onChange(e) {

View file

@ -1307,7 +1307,7 @@ class SendTextDialog extends Dialog {
}
_textInputEmpty() {
return this.$text.innerText === "\n";
return !this.$text.innerText || this.$text.innerText === "\n";
}
_onChange(e) {