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

Function drop

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

Source from the content-addressed store, hash-verified

105}
106
107function drop(key: string) {
108 if (typeof localStorage !== "object") return
109 try {
110 localStorage.removeItem(key)
111 } catch {}
112}
113
114function clear() {
115 drop(STORAGE_KEYS.THEME_CSS_LIGHT)

Callers 1

clearFunction · 0.70

Calls 1

removeItemMethod · 0.80

Tested by

no test coverage detected