Fix text tool producing "null" when cancel button pressed
This commit is contained in:
parent
409a78dbe9
commit
85dd590499
@ -49,7 +49,7 @@ function activateTextTool() {
|
||||
return;
|
||||
}
|
||||
var text = prompt("Enter a line of text to add to the document:");
|
||||
if (text == "") {
|
||||
if (text == "" || text == null) {
|
||||
return;
|
||||
}
|
||||
var canvas = document.createElement('canvas');
|
||||
|
Loading…
x
Reference in New Issue
Block a user