diff --git a/kolibri2zim/templates/assets/epub_embed.js b/kolibri2zim/templates/assets/epub_embed.js index d3c345a..4263162 100644 --- a/kolibri2zim/templates/assets/epub_embed.js +++ b/kolibri2zim/templates/assets/epub_embed.js @@ -1,7 +1,5 @@ var params = URLSearchParams && new URLSearchParams(document.location.search.substring(1)); var url = params && params.get("url") && decodeURIComponent(params.get("url")); - var currentCfi = (params && params.get("cfi")) ? params.get("cfi") : undefined; - var currentSectionIndex = (params && params.get("loc")) ? parseInt(params.get("loc")) : undefined; // Load the opf var book = ePub(url); @@ -12,12 +10,12 @@ var params = URLSearchParams && new URLSearchParams(document.location.search.sub var displayed = rendition.display(); - displayed.then(function(renderer){ + displayed.then(function(_){ // -- do stuff }); // Navigation loaded - book.loaded.navigation.then(function(toc){ + book.loaded.navigation.then(function(_){ // console.log(toc); });