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

Updates for rendering in embedded Webviews (#643)

* Initial embedding support

* Updates for rendering in embedded webviews

* toLowerCase nodeName check
This commit is contained in:
Fred Chasen 2017-08-01 17:25:19 -04:00 committed by GitHub
parent 5cc8b191d0
commit bb1ab21a33
23 changed files with 987 additions and 213 deletions

View file

@ -84,7 +84,7 @@ class Navigation {
var index = id ? id : 0;
tocLinkArray.forEach((linkElm) => {
if (linkElm.nodeName === 'li') {
if (linkElm.nodeName.toLowerCase() === 'li') {
var tocLink = qs(linkElm, 'a'),
tocLinkData = {
id: -1,