From d27220f65d3580cd11b5dfc8e911b51dfe347e4b Mon Sep 17 00:00:00 2001 From: Nikhil Tanwar <2002nikhiltanwar@gmail.com> Date: Thu, 28 Jul 2022 21:22:38 +0530 Subject: [PATCH] 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 --- static/skin/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/skin/index.js b/static/skin/index.js index a0f5441fd..10f49a134 100644 --- a/static/skin/index.js +++ b/static/skin/index.js @@ -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 + } })();