mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #12998 from Snuffleupagus/renderInteractiveForms-defaults
Simplify the default value handling of `renderInteractiveForms` in the viewer components
This commit is contained in:
commit
1d3af89cae
3 changed files with 3 additions and 12 deletions
|
@ -2012,10 +2012,7 @@ class AnnotationLayer {
|
|||
linkService: parameters.linkService,
|
||||
downloadManager: parameters.downloadManager,
|
||||
imageResourcesPath: parameters.imageResourcesPath || "",
|
||||
renderInteractiveForms:
|
||||
typeof parameters.renderInteractiveForms === "boolean"
|
||||
? parameters.renderInteractiveForms
|
||||
: true,
|
||||
renderInteractiveForms: parameters.renderInteractiveForms !== false,
|
||||
svgFactory: new DOMSVGFactory(),
|
||||
annotationStorage:
|
||||
parameters.annotationStorage || new AnnotationStorage(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue