Skip to content

Commit 1fd12df

Browse files
hellpanderrrclaude
andcommitted
fix(lexicon): retry chunk-key load after transient IndexedDB failure
Caching [] on failure disabled chunk lookups for the whole session; leaving chunkKeys null lets the next prefetch() retry. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 51f1d8a commit 1fd12df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wiktionary_pron/scripts/lexicon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ class ChunkedLexicon {
370370
this.chunkKeys = keys.map((k) => k[1]);
371371
} catch (e) {
372372
console.warn(`[ChunkedLexicon:${this.language}] loadChunkKeys failed`, e);
373-
this.chunkKeys = [];
373+
// Leave chunkKeys null so a later prefetch() retries after a
374+
// transient failure; chunkKeyFor() treats null as "no chunks"
374375
}
375376
}
376377

0 commit comments

Comments
 (0)