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

Function write

packages/ui/src/theme/context.tsx:100–105  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

98}
99
100function write(key: string, value: string) {
101 if (typeof localStorage !== "object") return
102 try {
103 localStorage.setItem(key, value)
104 } catch {}
105}
106
107function drop(key: string) {
108 if (typeof localStorage !== "object") return

Callers 5

applyThemeCssFunction · 0.70
cacheThemeVariantsFunction · 0.70
context.tsxFile · 0.70
setThemeFunction · 0.70
setColorSchemeFunction · 0.70

Calls 1

setItemMethod · 0.80

Tested by

no test coverage detected