mirror of
https://github.com/schlagmichdoch/PairDrop.git
synced 2026-04-06 01:43:48 +00:00
Fix _textInputEmpty() for Chromium based browsers
Co-authored-by: luckman212 <1992842+luckman212@users.noreply.github.com>
This commit is contained in:
@@ -1306,7 +1306,7 @@ class SendTextDialog extends Dialog {
|
||||
}
|
||||
|
||||
_textInputEmpty() {
|
||||
return this.$text.innerText === "\n";
|
||||
return !this.$text.innerText || this.$text.innerText === "\n";
|
||||
}
|
||||
|
||||
_onChange(e) {
|
||||
|
||||
@@ -1307,7 +1307,7 @@ class SendTextDialog extends Dialog {
|
||||
}
|
||||
|
||||
_textInputEmpty() {
|
||||
return this.$text.innerText === "\n";
|
||||
return !this.$text.innerText || this.$text.innerText === "\n";
|
||||
}
|
||||
|
||||
_onChange(e) {
|
||||
|
||||
Reference in New Issue
Block a user