mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Introduce some optional chaining in the src/core/xfa/
folder
After PR 12563 we're now free to use optional chaining in the worker-thread as well.
This commit is contained in:
parent
4d3dfe254f
commit
89f768322d
8 changed files with 46 additions and 65 deletions
|
@ -273,7 +273,7 @@ function checkDimensions(node, space) {
|
|||
|
||||
const ERROR = 2;
|
||||
const parent = node[$getSubformParent]();
|
||||
const attempt = (parent[$extra] && parent[$extra].attempt) || 0;
|
||||
const attempt = parent[$extra]?.attempt || 0;
|
||||
|
||||
const [, y, w, h] = getTransformedBBox(node);
|
||||
switch (parent.layout) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue