Skip to content

Commit 454b7e4

Browse files
authored
Merge pull request #38 from dandv/patch-1
Mention item limit in storage.ts
2 parents 817fe23 + 85a6e1b commit 454b7e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/storage.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import { writable, type Updater, type Writable } from "svelte/store";
22

33
/**
44
* Creates a persistent Svelte store backed by Chrome's sync storage.
5+
* Note that each item is limited to 8KB. Use storage.local for larger amounts.
6+
* https://developer.chrome.com/docs/extensions/reference/api/storage#storage_areas
7+
*
58
* @template T The type of the store's value
69
* @param key The key to use in Chrome's storage
710
* @param initialValue The initial value of the store

0 commit comments

Comments
 (0)