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:
parent
b72c99888b
commit
66242c5e99
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "epubjs",
|
||||
"version": "0.3.19",
|
||||
"version": "0.3.20",
|
||||
"description": "Parse and Render Epubs",
|
||||
"main": "lib/index.js",
|
||||
"jsnext:main": "src/index.js",
|
||||
|
|
|
@ -20,7 +20,7 @@ class Navigation {
|
|||
* @param {document} xml navigation html / xhtml / ncx
|
||||
*/
|
||||
parse(xml) {
|
||||
let isXml = xml.nodeValue;
|
||||
let isXml = xml.nodeType;
|
||||
if (isXml) {
|
||||
let html = qs(xml, "html");
|
||||
let ncx = qs(xml, "ncx");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue