1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

Provide a js fallback when the wasm version of openjpeg is failing to load (bug 1935076)

This commit is contained in:
Calixte Denizet 2025-02-20 22:34:46 +01:00
parent 6713c239e3
commit 36e4f5c222
8 changed files with 107 additions and 18 deletions

View file

@ -651,10 +651,17 @@ function createStandardFontBundle() {
function createWasmBundle() {
return ordered([
gulp.src(["external/openjpeg/*.wasm", "external/openjpeg/LICENSE_*"], {
base: "external/openjpeg",
encoding: false,
}),
gulp.src(
[
"external/openjpeg/*.wasm",
"external/openjpeg/openjpeg_nowasm_fallback.js",
"external/openjpeg/LICENSE_*",
],
{
base: "external/openjpeg",
encoding: false,
}
),
]);
}