Skip to content

Commit

Permalink
Remove unused variables 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 5a49cc3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 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 @@ -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);
});

Expand Down

0 comments on commit 5a49cc3

Please sign in to comment.