Fix text tool producing "null" when cancel button pressed

This commit is contained in:
Skylar Ittner 2021-07-16 11:59:24 -06:00
parent 409a78dbe9
commit 85dd590499

View File

@ -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');