Skip to content

Commit

Permalink
Fix example code for cookie storage
Browse files Browse the repository at this point in the history
  • Loading branch information
akiomik authored Feb 25, 2023
1 parent 584b57b commit fa168c4
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 fa168c4

Please sign in to comment.