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

Function normalize

packages/ui/src/theme/context.tsx:87–89  ·  view source on GitHub ↗
(id: string | null | undefined)

Source from the content-addressed store, hash-verified

85const oc2Theme = oc2ThemeJson as DesktopTheme
86
87function normalize(id: string | null | undefined) {
88 return id === "oc-1" ? "oc-2" : id
89}
90
91function read(key: string) {
92 if (typeof localStorage !== "object") return null

Callers 4

context.tsxFile · 0.70
loadFunction · 0.70
onStorageFunction · 0.70
setThemeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected