MCPcopy Create free account
hub / github.com/anomalyco/opencode / read

Function read

packages/ui/src/theme/context.tsx:91–98  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

89}
90
91function read(key: string) {
92 if (typeof localStorage !== "object") return null
93 try {
94 return localStorage.getItem(key)
95 } catch {
96 return null
97 }
98}
99
100function write(key: string, value: string) {
101 if (typeof localStorage !== "object") return

Callers 1

context.tsxFile · 0.70

Calls 1

getItemMethod · 0.80

Tested by

no test coverage detected