mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Re-factor how the sandboxBundleSrc
option is passed to PDFScriptingManager
Given that this option isn't used in the Firefox PDF Viewer, we can (ever so slightly) reduce the amount of code needed.
This commit is contained in:
parent
988d3a188f
commit
92c15a61f1
6 changed files with 12 additions and 28 deletions
|
@ -51,8 +51,8 @@ class GenericExternalServices extends DefaultExternalServices {
|
|||
return new GenericL10n(AppOptions.get("locale"));
|
||||
}
|
||||
|
||||
static createScripting({ sandboxBundleSrc }) {
|
||||
return new GenericScripting(sandboxBundleSrc);
|
||||
static createScripting() {
|
||||
return new GenericScripting(AppOptions.get("sandboxBundleSrc"));
|
||||
}
|
||||
}
|
||||
PDFViewerApplication.externalServices = GenericExternalServices;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue