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:
Jonas Jenwald 2026-07-02 18:46:41 +02:00
parent a1f1a56080
commit 12691fdf50

View File

@ -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;