fix: empty tags and title
This commit is contained in:
parent
7e75006d85
commit
86c2ff8ff6
6
main.js
6
main.js
|
@ -1319,6 +1319,10 @@ function indexheader(content)
|
|||
if (key == "tags")
|
||||
{
|
||||
val = val.split(",").map(t => t.trim());
|
||||
if (val.length == 1 && !val[0])
|
||||
{
|
||||
val.pop();
|
||||
}
|
||||
}
|
||||
indexedheader[key] = val;
|
||||
}
|
||||
|
@ -2939,7 +2943,7 @@ function bind(title, content, pos)
|
|||
var changed = title.value != title;
|
||||
|
||||
backup = content;
|
||||
title.value = title;
|
||||
window.title.value = title;
|
||||
setwindowtitle();
|
||||
|
||||
seteditorcontent(content || "", true);
|
||||
|
|
Loading…
Reference in New Issue