mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-24 09:08:07 +02:00
Re-factor DefaultExternalServices
into a regular class, without static methods
The `DefaultExternalServices` code, which is used to provide build-specific functionality, is very old. This results in a pattern where we first initialize `PDFViewerApplication.externalServices` and then *override* it for the different builds. By converting `DefaultExternalServices` into a "regular" class, and leveraging import maps, we can directly initialize the correct instance depending on the build.
This commit is contained in:
parent
d1080e785a
commit
5dd25b6e80
9 changed files with 80 additions and 61 deletions
|
@ -29,6 +29,7 @@
|
|||
"web-annotation_editor_params": "../../web/annotation_editor_params.js",
|
||||
"web-com": "../../web/genericcom.js",
|
||||
"web-download_manager": "../../web/download_manager.js",
|
||||
"web-external_services": "../../web/genericcom.js",
|
||||
"web-l10n_utils": "../../web/l10n_utils.js",
|
||||
"web-pdf_attachment_viewer": "../../web/pdf_attachment_viewer.js",
|
||||
"web-pdf_cursor_tools": "../../web/pdf_cursor_tools.js",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue