Skip to content

Commit 1d1e6e7

Browse files
committed
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.
1 parent 22657e2 commit 1d1e6e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/generic_signature_storage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class SignatureStorage {
3636
#save() {
3737
localStorage.setItem(
3838
KEY_STORAGE,
39-
JSON.stringify(Object.fromEntries(this.#signatures.entries()))
39+
JSON.stringify(Object.fromEntries(this.#signatures))
4040
);
4141
}
4242

0 commit comments

Comments
 (0)