Merge pull request #13032 from Snuffleupagus/parseDestDictionary-actionName-warn

Don't warn about actions that require scripting support in `Catalog.parseDestDictionary`
This commit is contained in:
Tim van der Meij 2021-02-28 14:52:06 +01:00 committed by GitHub
commit d6e0b2d92e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1366,7 +1366,16 @@ class Catalog {
}
/* falls through */
default:
warn(`parseDestDictionary: unsupported action type "${actionName}".`);
if (
actionName === "JavaScript" ||
actionName === "ResetForm" ||
actionName === "SubmitForm"
) {
// Don't bother the user with a warning for actions that require
// scripting support, since those will be handled separately.
break;
}
warn(`parseDestDictionary - unsupported action: "${actionName}".`);
break;
}
} else if (destDict.has("Dest")) {