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:
parent
6713c239e3
commit
36e4f5c222
8 changed files with 107 additions and 18 deletions
15
gulpfile.mjs
15
gulpfile.mjs
|
@ -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,
|
||||
}
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue