1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Fix navigation isXml check

This commit is contained in:
Fred Chasen 2017-03-27 11:20:50 -04:00
parent b72c99888b
commit 66242c5e99
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "epubjs", "name": "epubjs",
"version": "0.3.19", "version": "0.3.20",
"description": "Parse and Render Epubs", "description": "Parse and Render Epubs",
"main": "lib/index.js", "main": "lib/index.js",
"jsnext:main": "src/index.js", "jsnext:main": "src/index.js",

View file

@ -20,7 +20,7 @@ class Navigation {
* @param {document} xml navigation html / xhtml / ncx * @param {document} xml navigation html / xhtml / ncx
*/ */
parse(xml) { parse(xml) {
let isXml = xml.nodeValue; let isXml = xml.nodeType;
if (isXml) { if (isXml) {
let html = qs(xml, "html"); let html = qs(xml, "html");
let ncx = qs(xml, "ncx"); let ncx = qs(xml, "ncx");