mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Remove the createDownloadManager
method from DefaultExternalServices
Given the simplicity of the `createDownloadManager` method, we can leverage import maps to directly initialize the correct `DownloadManager`-instance depending on the build.
This commit is contained in:
parent
d8f77e6b84
commit
1698991ae2
8 changed files with 9 additions and 20 deletions
|
@ -16,7 +16,6 @@
|
|||
import { DefaultExternalServices, PDFViewerApplication } from "./app.js";
|
||||
import { AppOptions } from "./app_options.js";
|
||||
import { BasePreferences } from "./preferences.js";
|
||||
import { DownloadManager } from "./download_manager.js";
|
||||
import { GenericL10n } from "./genericl10n.js";
|
||||
import { GenericScripting } from "./generic_scripting.js";
|
||||
|
||||
|
@ -39,10 +38,6 @@ class GenericPreferences extends BasePreferences {
|
|||
}
|
||||
|
||||
class GenericExternalServices extends DefaultExternalServices {
|
||||
static createDownloadManager() {
|
||||
return new DownloadManager();
|
||||
}
|
||||
|
||||
static createPreferences() {
|
||||
return new GenericPreferences();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue