mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #17255 from Snuffleupagus/issue-17228
Ensure that the viewer waits for the library to complete loading (issue 17228)
This commit is contained in:
commit
290b483167
2 changed files with 10 additions and 1 deletions
|
@ -422,7 +422,7 @@ function tweakWebpackOutput(jsName) {
|
|||
case " __webpack_exports__ = {};":
|
||||
return ` __webpack_exports__ = globalThis.${jsName} = {};`;
|
||||
case " __webpack_exports__ = await __webpack_exports__;":
|
||||
return ` __webpack_exports__ = globalThis.${jsName} = await __webpack_exports__;`;
|
||||
return ` __webpack_exports__ = globalThis.${jsName} = await (globalThis.${jsName}Promise = __webpack_exports__);`;
|
||||
}
|
||||
return match;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue