mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
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:
@ -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
|
||||
}
|
||||
})();
|
||||
|
||||
|
Reference in New Issue
Block a user