1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #18051 from Snuffleupagus/NodePackages

[api-minor] Re-factor how Node.js packages/polyfills are  loaded (issue 17245)
This commit is contained in:
Jonas Jenwald 2024-05-14 11:43:57 +02:00 committed by GitHub
commit 298d72133e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 105 additions and 75 deletions

View file

@ -13,15 +13,6 @@
* limitations under the License.
*/
// Ensure that the viewer waits for the library to complete loading,
// to avoid breaking e.g. the standalone viewer components (see issue 17228).
if (
(typeof PDFJSDev === "undefined" || PDFJSDev.test("GENERIC")) &&
!globalThis.pdfjsLib
) {
await globalThis.pdfjsLibPromise;
}
const {
AbortException,
AnnotationEditorLayer,