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

Function getItem

packages/shared/src/lib/storageWrapper.ts:17–22  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

15 }
16
17 function getItem(key: string): string | null {
18 if (isLocalStorageEnabled()) {
19 return localStorage.getItem(key);
20 }
21 return inMemoryStorage[key] ?? null;
22 }
23
24 function setItem(key: string, value: string): void {
25 if (isLocalStorageEnabled()) {

Callers

nothing calls this directly

Calls 1

isLocalStorageEnabledFunction · 0.85

Tested by

no test coverage detected