Commit 6c782d4
authored
Add localStorage commands and documentation for get_item function (#23)
This pull request adds support for reading values from local storage in
addition to the existing functionality for writing and removing items.
The primary change is the introduction of a new `get_item` command and
its documentation.
**Local Storage Enhancements:**
* Added a new `get_item` command to the storage schema, allowing
retrieval of a value by key from local storage, returning an empty
string if the key does not exist.
* Documented the new `get_item` function in `docs/api/storage.md`,
including usage and return value details.
---------
Co-authored-by: io-eric <io-eric@users.noreply.github.com>1 parent a4b36eb commit 6c782d4
2 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
0 commit comments