Skip to content

Commit 10b328d

Browse files
committed
fixing lexicon loading
1 parent 741fd7e commit 10b328d

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

wiktionary_pron/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
<link rel="icon" type="image/png" sizes="16x16" href="icons/transcriber/favicon-16x16.png">
3434
<link rel="icon" href="icons/transcriber/favicon.ico">
3535
<link href="css/style.css" rel="stylesheet" type="text/css">
36-
<link rel="manifest" href="manifest.webmanifest">
3736

3837

3938
</head>

wiktionary_pron/scripts/lexicon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function loadLexicon(language) {
5757
return lexiconInterface;
5858
} catch (error) {
5959
console.error("Lexicon loading failed:", error);
60-
throw error;
60+
updateLoadingText("", "", "Failed to load lexicon");
6161
} finally {
6262
if (worker) {
6363
worker.terminate();

wiktionary_pron/scripts/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ async function fetchWithCache(
555555

556556
let responseContent;
557557

558-
if (contentType == "application/zip") {
558+
if (contentType && contentType.includes("zip")) {
559559
responseContent = await newResponse.blob();
560560
try {
561561
await localforage.setItem(url, responseContent);

0 commit comments

Comments
 (0)