Give name to IIFE in index.js and expose updateBookCount

Gives a name to the IIFE wrapping code in index.js - kiwixServe
and exposes updateBookCount through it
This commit is contained in:
Nikhil Tanwar 2022-07-28 21:22:38 +05:30
parent efe42c9bbe
commit d27220f65d
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
(function() {
const kiwixServe = (function() {
const root = document.querySelector(`link[type='root']`).getAttribute('href');
const incrementalLoadingParams = {
start: 0,
@ -493,5 +493,8 @@
}
setCookie(filterCookieName, params.toString());
}
return {
updateBookCount
}
})();