mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-30 10:57:21 +02:00
Merge pull request #20548 from calixteman/jbig2wasm_failure
Fix wasm url issue for the jbig2 decoder
This commit is contained in:
commit
54d84799c2
@ -63,7 +63,7 @@ class JBig2WasmImage {
|
|||||||
return successCallback(results.instance);
|
return successCallback(results.instance);
|
||||||
} catch (reason) {
|
} catch (reason) {
|
||||||
warn(`JBig2Image#instantiateWasm: ${reason}`);
|
warn(`JBig2Image#instantiateWasm: ${reason}`);
|
||||||
return null;
|
return fallbackCallback(null);
|
||||||
} finally {
|
} finally {
|
||||||
this.#handler = null;
|
this.#handler = null;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13139,5 +13139,14 @@
|
|||||||
"rounds": 1,
|
"rounds": 1,
|
||||||
"link": true,
|
"link": true,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "JBIG2Globals_nowasm",
|
||||||
|
"file": "pdfs/JBIG2Globals.pdf",
|
||||||
|
"md5": "78ee015a604678a4efbdcd993e0d77aa",
|
||||||
|
"rounds": 1,
|
||||||
|
"link": true,
|
||||||
|
"type": "eq",
|
||||||
|
"useWasm": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user