1
0
Fork 0
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:
Tim van der Meij 2021-02-17 20:37:03 +01:00 committed by GitHub
commit 1d3af89cae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 12 deletions

View file

@ -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(),