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:
parent
22657e2b6e
commit
1d1e6e7b92
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class SignatureStorage {
|
|||
#save() {
|
||||
localStorage.setItem(
|
||||
KEY_STORAGE,
|
||||
JSON.stringify(Object.fromEntries(this.#signatures.entries()))
|
||||
JSON.stringify(Object.fromEntries(this.#signatures))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue