1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Simplify the default value handling of renderInteractiveForms in the viewer components

I happened to look at this code, and I can't for the life of me figure out why I didn't just implement it like this patch in the first place (since the current format feels overly verbose).
This commit is contained in:
Jonas Jenwald 2021-02-17 10:47:55 +01:00
parent 952bc08ec0
commit 0a28e51e40
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(),