From ec6e7ad033753e23889a0e3ba9b1eaae133be1bc Mon Sep 17 00:00:00 2001 From: "xinchao.wang" Date: Thu, 17 May 2018 10:53:42 +0800 Subject: [PATCH] fixed title value is empty --- epub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epub.js b/epub.js index 7332e94..5adbf35 100644 --- a/epub.js +++ b/epub.js @@ -527,7 +527,7 @@ EPub.prototype.walkNavMap = function (branch, path, id_list, level) { var title = ''; if (branch[i].navLabel && typeof branch[i].navLabel.text == 'string') { title = branch[i].navLabel && branch[i].navLabel.text || branch[i].navLabel===branch[i].navLabel ? - '' : (branch[i].navLabel && branch[i].navLabel.text || branch[i].navLabel || "").trim(); + (branch[i].navLabel && branch[i].navLabel.text || branch[i].navLabel || "").trim() : ''; } var order = Number(branch[i]["@"] && branch[i]["@"].playOrder || 0); if (isNaN(order)) {