Skip to content

Commit

Permalink
Merge pull request #40 from akiomik/patch-2
Browse files Browse the repository at this point in the history
Fix example code for cookie storage
  • Loading branch information
MacFJA authored May 4, 2023
2 parents 0a1cb62 + fa168c4 commit f77ccca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .docs/Examples/01-Basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ order: 1

```html
<script>
import { persist, cookieStorage } from "@macfja/svelte-persistent-store"
import { persist, createCookieStorage } from "@macfja/svelte-persistent-store"
import { writable } from "svelte/store"
const newsLetterSubscription = persist(writable(false), cookieStorage(), "newsletter")
const newsLetterSubscription = persist(writable(false), createCookieStorage(), "newsletter")
</script>

<footer>
Expand Down

0 comments on commit f77ccca

Please sign in to comment.