MCPcopy Index your code
hub / github.com/anomalyco/opencode / getStorage

Function getStorage

packages/app/src/entry.tsx:32–39  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

30}
31
32const getStorage = (key: string) => {
33 if (typeof localStorage === "undefined") return null
34 try {
35 return localStorage.getItem(key)
36 } catch {
37 return null
38 }
39}
40
41const setStorage = (key: string, value: string | null) => {
42 if (typeof localStorage === "undefined") return

Callers 1

readDefaultServerUrlFunction · 0.85

Calls 1

getItemMethod · 0.80

Tested by

no test coverage detected