mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Fixed missing let in Contents
This commit is contained in:
parent
0eb56965d3
commit
85c23fca69
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ class Contents {
|
||||||
if(!this.document) return;
|
if(!this.document) return;
|
||||||
|
|
||||||
if(this.epubcfi.isCfiString(target)) {
|
if(this.epubcfi.isCfiString(target)) {
|
||||||
range = new EpubCFI(target).toRange(this.document, ignoreClass);
|
let range = new EpubCFI(target).toRange(this.document, ignoreClass);
|
||||||
|
|
||||||
if(range) {
|
if(range) {
|
||||||
if (range.startContainer.nodeType === Node.ELEMENT_NODE) {
|
if (range.startContainer.nodeType === Node.ELEMENT_NODE) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue