mirror of https://github.com/kiwix/libkiwix.git
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:
parent
efe42c9bbe
commit
d27220f65d
|
@ -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
|
||||
}
|
||||
})();
|
||||
|
||||
|
|
Loading…
Reference in New Issue