avoid error unload

This commit is contained in:
j 2017-03-14 17:58:11 +01:00
parent 44c1c48938
commit af5b4b2cf3

View file

@ -256,9 +256,11 @@ function loadTxt() {
} }
function saveTxt() { function saveTxt() {
var txt = textArea.elem.val(); if (textArea) {
//console.log('saveTxt', videoHash, txt.length); var txt = textArea.elem.val();
globalUser.set_txt(videoHash, txt); //console.log('saveTxt', videoHash, txt.length);
globalUser.set_txt(videoHash, txt);
}
} }
function saveContent(content, type, path) { function saveContent(content, type, path) {