Skip to content

Commit

Permalink
fix: localStorage.get() -> localStorage.getItem() (pacocoursey#29)
Browse files Browse the repository at this point in the history
`.get()` doesn't exist on `localStorage` - change to `.getItem()`
  • Loading branch information
brunocrosier authored Feb 26, 2021
1 parent 0204498 commit 7c8a326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Done! To be extra clear, this affects only the DOM. Here's how all the values wi
const { theme } = useTheme()
// => "pink"

localStorage.get('theme')
localStorage.getItem('theme')
// => "pink"

document.documentElement.getAttribute('data-theme')
Expand Down

0 comments on commit 7c8a326

Please sign in to comment.