From 85c23fca69628c17eadee00f69fbd02df44edf06 Mon Sep 17 00:00:00 2001 From: Fred Chasen Date: Tue, 6 Dec 2016 23:45:04 +0100 Subject: [PATCH] Fixed missing let in Contents --- src/contents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contents.js b/src/contents.js index 4afc277..edf6db4 100644 --- a/src/contents.js +++ b/src/contents.js @@ -381,7 +381,7 @@ class Contents { if(!this.document) return; 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.startContainer.nodeType === Node.ELEMENT_NODE) {