MCPcopy Create free account
hub / github.com/dailydotdev/apps / setItem

Function setItem

packages/shared/src/lib/storageWrapper.ts:24–30  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

22 }
23
24 function setItem(key: string, value: string): void {
25 if (isLocalStorageEnabled()) {
26 localStorage.setItem(key, value);
27 } else {
28 inMemoryStorage[key] = value;
29 }
30 }
31
32 function removeItem(key: string): void {
33 if (isLocalStorageEnabled()) {

Callers

nothing calls this directly

Calls 1

isLocalStorageEnabledFunction · 0.85

Tested by

no test coverage detected