diff --git a/js/app.js b/js/app.js index 1c00311..105bf92 100644 --- a/js/app.js +++ b/js/app.js @@ -256,9 +256,11 @@ function loadTxt() { } function saveTxt() { - var txt = textArea.elem.val(); - //console.log('saveTxt', videoHash, txt.length); - globalUser.set_txt(videoHash, txt); + if (textArea) { + var txt = textArea.elem.val(); + //console.log('saveTxt', videoHash, txt.length); + globalUser.set_txt(videoHash, txt); + } } function saveContent(content, type, path) {