Skip to content

Commit 8af06a4

Browse files
committed
Add useractivation check for response function
1 parent de2a44a commit 8af06a4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/scripting_api/app.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,11 @@ class App extends PDFObject {
607607
}
608608

609609
response(cQuestion, cTitle = "", cDefault = "", bPassword = "", cLabel = "") {
610+
if (!this._document.obj._userActivation) {
611+
return null;
612+
}
613+
this._document.obj._userActivation = false;
614+
610615
if (cQuestion && typeof cQuestion === "object") {
611616
cDefault = cQuestion.cDefault;
612617
cQuestion = cQuestion.cQuestion;

0 commit comments

Comments
 (0)