Vorbereitete Bücher: Schlüssel enthält die Fußnoten-Erkennung der App-Schicht; sw v108
Ä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:
parent
a7d4d92f9e
commit
1c74e60224
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue