mirror of
https://github.com/NaitLee/Cat-Printer.git
synced 2025-05-18 16:20:14 -07:00
* Do not insert text if textarea is empty
This commit is contained in:
parent
5f88390853
commit
47ace549c6
@ -469,7 +469,7 @@ class CanvasController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
insertText(text) {
|
insertText(text) {
|
||||||
if (text == null) { return; }
|
if (text == null || text.trim() == "") { return; }
|
||||||
|
|
||||||
const text_size = parseInt(this.textSize.value);
|
const text_size = parseInt(this.textSize.value);
|
||||||
const text_font = this.textFont.value;
|
const text_font = this.textFont.value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user