mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-24 16:07:22 +02:00
Remove unnecessary class-field resetting in SignaturePropertiesManager.prototype.setDocument (PR 21247 follow-up)
This corresponds to the initial values of these fields, and they were *already* reset when a (previous) PDF document was closed.
This commit is contained in:
parent
a1f1a56080
commit
12691fdf50
@ -263,9 +263,6 @@ class SignaturePropertiesManager {
|
|||||||
if (!pdfDocument) {
|
if (!pdfDocument) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.#signatures = [];
|
|
||||||
this.#results.clear();
|
|
||||||
this.#pendingVerify.clear();
|
|
||||||
this.#isLoading = true;
|
this.#isLoading = true;
|
||||||
this.#render();
|
this.#render();
|
||||||
|
|
||||||
@ -274,7 +271,6 @@ class SignaturePropertiesManager {
|
|||||||
signatures = await pdfDocument.getSignatures();
|
signatures = await pdfDocument.getSignatures();
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
console.warn("getSignatures failed:", ex);
|
console.warn("getSignatures failed:", ex);
|
||||||
signatures = [];
|
|
||||||
}
|
}
|
||||||
if (pdfDocument !== this.#pdfDocument) {
|
if (pdfDocument !== this.#pdfDocument) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user