mirror of
https://github.com/localForage/localForage.git
synced 2026-02-01 15:32:04 +00:00
Merge pull request #1045 from SimpleIndian/patch-1
removed extra `code` denotation from docs
This commit is contained in:
commit
c5b6615725
@ -67,9 +67,8 @@ localforage.getItem('somekey', function(err, value) {
|
||||
console.log(value);
|
||||
});
|
||||
|
||||
Or, use `async`/`await`:
|
||||
// Or, use `async`/`await`:
|
||||
|
||||
```js
|
||||
try {
|
||||
const value = await localforage.getItem('somekey');
|
||||
// This code runs once the value has been loaded
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user