MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / safeSessionStorage

Function safeSessionStorage

packages/studio/src/utils/safeStorage.ts:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14export function safeSessionStorage(): Storage | null {
15 try {
16 return typeof sessionStorage === "undefined" ? null : sessionStorage;
17 } catch {
18 return null;
19 }
20}

Callers 2

hasFiredSessionStartFunction · 0.90
markSessionStartFiredFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected