avoid error unload
This commit is contained in:
parent
44c1c48938
commit
af5b4b2cf3
1 changed files with 5 additions and 3 deletions
|
@ -256,10 +256,12 @@ function loadTxt() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveTxt() {
|
function saveTxt() {
|
||||||
|
if (textArea) {
|
||||||
var txt = textArea.elem.val();
|
var txt = textArea.elem.val();
|
||||||
//console.log('saveTxt', videoHash, txt.length);
|
//console.log('saveTxt', videoHash, txt.length);
|
||||||
globalUser.set_txt(videoHash, txt);
|
globalUser.set_txt(videoHash, txt);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function saveContent(content, type, path) {
|
function saveContent(content, type, path) {
|
||||||
var blob = new Blob([content], {type: type});
|
var blob = new Blob([content], {type: type});
|
||||||
|
|
Loading…
Reference in a new issue