Fix text tool producing "null" when cancel button pressed

master
Skylar Ittner 3 years ago
parent 409a78dbe9
commit 85dd590499

@ -49,7 +49,7 @@ function activateTextTool() {
return; return;
} }
var text = prompt("Enter a line of text to add to the document:"); var text = prompt("Enter a line of text to add to the document:");
if (text == "") { if (text == "" || text == null) {
return; return;
} }
var canvas = document.createElement('canvas'); var canvas = document.createElement('canvas');

Loading…
Cancel
Save