diff --git a/src/js/previewmode.js b/src/js/previewmode.js index f9f6dbc..c3bd3c5 100644 --- a/src/js/previewmode.js +++ b/src/js/previewmode.js @@ -210,7 +210,9 @@ previewmode.renderPreview = function () { ? (text.slice(0, MAX_PREVIEW_CHARACTERS) + '...') : text; - this.dom.sizeInfo.innerText = 'Size: ' + util.formatSize(text.length) + if (this.dom.sizeInfo) { + this.dom.sizeInfo.innerText = 'Size: ' + util.formatSize(text.length); + } }; /**