Check existence of `sizeInfo` before updating it's contents
This commit is contained in:
parent
cda54f95fc
commit
3920215f73
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue