-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
handles new json format and apply changes
- Loading branch information
1 parent
10d7cc3
commit 76c3a56
Showing
11 changed files
with
213 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const KEY = "values"; | ||
|
||
export class StorageValues { | ||
constructor() { | ||
this.values = JSON.parse(localStorage.getItem(KEY)); | ||
} | ||
|
||
setValues(values) { | ||
localStorage.setItem(KEY, JSON.stringify(values)); | ||
} | ||
|
||
getValues() { | ||
return this.values; | ||
} | ||
} |
Oops, something went wrong.