MCPcopy Create free account
hub / github.com/VienLi/CcView / setStorage

Function setStorage

src/utils/common.ts:40–44  ·  view source on GitHub ↗
(key: string, value: any)

Source from the content-addressed store, hash-verified

38 }
39}
40export function setStorage(key: string, value: any) {
41 if (typeof window !== 'undefined') {
42 localStorage.setItem(key, value);
43 }
44}
45export function removeStorage(key: string) {
46 if (typeof window !== 'undefined') {
47 localStorage.removeItem(key);

Callers 3

refreshCaptchaFunction · 0.90
onSubmitFunction · 0.90
index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected