mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-04 22:25:50 +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) {
|
||||
return;
|
||||
}
|
||||
this.#signatures = [];
|
||||
this.#results.clear();
|
||||
this.#pendingVerify.clear();
|
||||
this.#isLoading = true;
|
||||
this.#render();
|
||||
|
||||
@ -274,7 +271,6 @@ class SignaturePropertiesManager {
|
||||
signatures = await pdfDocument.getSignatures();
|
||||
} catch (ex) {
|
||||
console.warn("getSignatures failed:", ex);
|
||||
signatures = [];
|
||||
}
|
||||
if (pdfDocument !== this.#pdfDocument) {
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user