Vorbereitete Bücher: Schlüssel enthält die Fußnoten-Erkennung der App-Schicht; sw v108
All checks were successful
Test / test (push) Successful in 8m18s
Build and push Docker image / build (push) Successful in 14s
Test / e2e (push) Successful in 2m0s

Änderungen an native-ui.js (diora-android) erneuern jetzt auch die im
IndexedDB gespeicherte Aufbereitung (window.__dioraPrepareSig).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
mrwnslz 2026-10-14 19:54:12 +02:00
parent a7d4d92f9e
commit 1c74e60224
2 changed files with 4 additions and 2 deletions

View file

@ -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);

View file

@ -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',