分类不能为空

This commit is contained in:
luchenqun 2017-05-01 16:10:54 +08:00
parent 3576cd334f
commit ca9b8e4491
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ var parsehtml = function(file, callback) {
var folder, tag; var folder, tag;
folder = $(ee).prev(); folder = $(ee).prev();
tag = folder.text().replace(/(^\s*)|(\s*$)/g, '').replace(/\s+/g, ' '); tag = folder.text().replace(/(^\s*)|(\s*$)/g, '').replace(/\s+/g, ' ');
if (tag != "Bookmarks" && tag != "书签栏") { if (tag != "Bookmarks" && tag != "书签栏" && tag != "") {
if (allTags.indexOf(tag) == -1) { if (allTags.indexOf(tag) == -1) {
allTags.push(tag); allTags.push(tag);
} }