diff --git a/static/js/app/48-book-cache.js b/static/js/app/48-book-cache.js index 84cf793..5b0781d 100644 --- a/static/js/app/48-book-cache.js +++ b/static/js/app/48-book-cache.js @@ -41,8 +41,10 @@ let _parseCodeSig = null; function _parsePreparationSig() { if (_parseCodeSig) return _parseCodeSig; + // window.__dioraPrepareSig: what an app layer adds to the preparation (the + // footnote detection in diora-android's native-ui.js) — a change there too. const src = [parseEpub, sanitizeEpubHtml, _injectImageBlobs, _resolveImageBlob, _parseEpubToc] - .map(f => String(f)).join('\n'); + .map(f => String(f)).join('\n') + (window.__dioraPrepareSig || ''); let h = 5381; for (let i = 0; i < src.length; i++) h = ((h << 5) + h + src.charCodeAt(i)) | 0; return (_parseCodeSig = (h >>> 0).toString(36) + '.' + src.length); diff --git a/static/js/sw.js b/static/js/sw.js index 24d713e..e4af648 100644 --- a/static/js/sw.js +++ b/static/js/sw.js @@ -2,7 +2,7 @@ * diora service worker — caches the app shell for offline use. */ -const CACHE = 'diora-v107'; +const CACHE = 'diora-v108'; const SHELL = [ '/static/css/app.css', '/static/js/app/01-core.js',