Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Balearica committed Mar 3, 2025
1 parent c640d61 commit 8bceefe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mupdf/mupdf-async.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ export async function initMuPDFWorker() {
}

setTimeout(() => {
if (ready) {
console.log('Worker ready after timeout');
return;
}
console.log('workerResReject(\'Worker initialization timed out\')');
workerResReject('Worker initialization timed out');
}, 5000);
Expand Down

0 comments on commit 8bceefe

Please sign in to comment.