diff --git a/src/js/drawtools.js b/src/js/drawtools.js index dd35636..12f10fa 100644 --- a/src/js/drawtools.js +++ b/src/js/drawtools.js @@ -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');