mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-08-03 12:57:20 +02:00
Add useractivation check for response function
This commit is contained in:
parent
de2a44a558
commit
8af06a4c60
@ -607,6 +607,11 @@ class App extends PDFObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
response(cQuestion, cTitle = "", cDefault = "", bPassword = "", cLabel = "") {
|
response(cQuestion, cTitle = "", cDefault = "", bPassword = "", cLabel = "") {
|
||||||
|
if (!this._document.obj._userActivation) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
this._document.obj._userActivation = false;
|
||||||
|
|
||||||
if (cQuestion && typeof cQuestion === "object") {
|
if (cQuestion && typeof cQuestion === "object") {
|
||||||
cDefault = cQuestion.cDefault;
|
cDefault = cQuestion.cDefault;
|
||||||
cQuestion = cQuestion.cQuestion;
|
cQuestion = cQuestion.cQuestion;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user