Skip to content

Commit

Permalink
Remove unused variables / code in JS
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Jul 6, 2023
1 parent 1672c97 commit b324547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kolibri2zim/templates/assets/epub_embed.js
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -10,6 +8,7 @@ var params = URLSearchParams && new URLSearchParams(document.location.search.sub
height: 600
});

/*
var displayed = rendition.display();
displayed.then(function(renderer){
Expand All @@ -20,6 +19,7 @@ var params = URLSearchParams && new URLSearchParams(document.location.search.sub
book.loaded.navigation.then(function(toc){
// console.log(toc);
});
*/

var next = document.getElementById("next");
next.addEventListener("click", function(){
Expand Down

0 comments on commit b324547

Please sign in to comment.