Don't warn about actions that require scripting support in Catalog.parseDestDictionary

Now that we have scripting support, warning about e.g. JavaScript actions doesn't seem necessary anymore. Especially considering that scripting-related actions are/will not be parsed by the `Catalog.parseDestDictionary` method anyway, since it's intended for handling "simple" actions.
This commit is contained in:
Jonas Jenwald 2021-02-28 13:11:22 +01:00
parent 8e74278b65
commit 39cf4a0008

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")) {