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() {
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) {