mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 01:35:43 +02:00
Only define the renderer
-option in the GENERIC viewer
Given that the SVG back-end is not defined anywhere except in GENERIC builds, we can remove a little bit of unnecessary code in e.g. the Firefox PDF Viewer.
This commit is contained in:
parent
c3d0858062
commit
df79b18a31
3 changed files with 15 additions and 18 deletions
|
@ -521,7 +521,11 @@ const PDFViewerApplication = {
|
|||
findController,
|
||||
scriptingManager:
|
||||
AppOptions.get("enableScripting") && pdfScriptingManager,
|
||||
renderer: AppOptions.get("renderer"),
|
||||
renderer:
|
||||
typeof PDFJSDev === "undefined" ||
|
||||
PDFJSDev.test("!PRODUCTION || GENERIC")
|
||||
? AppOptions.get("renderer")
|
||||
: null,
|
||||
l10n: this.l10n,
|
||||
textLayerMode: AppOptions.get("textLayerMode"),
|
||||
annotationMode: AppOptions.get("annotationMode"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue