1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 06:38:07 +02:00

Simplify Object.fromEntries usage a tiny bit in the web/generic_signature_storage.js file

As can be seen [at MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries#parameters) the `Object.fromEntries` method accepts a `Map` directly, hence using the `Map.prototype.entries` method is superfluous here.
This commit is contained in:
Jonas Jenwald 2025-04-09 12:06:40 +02:00
parent 22657e2b6e
commit 1d1e6e7b92

View file

@ -36,7 +36,7 @@ class SignatureStorage {
#save() {
localStorage.setItem(
KEY_STORAGE,
JSON.stringify(Object.fromEntries(this.#signatures.entries()))
JSON.stringify(Object.fromEntries(this.#signatures))
);
}