MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / sessionFlag

Function sessionFlag

packages/app/src/server-disconnected.ts:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64};
65
66const sessionFlag = (): Pick<Storage, "getItem" | "setItem"> | null => {
67 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: sessionStorage throws when storage is blocked or full
68 try {
69 return window.sessionStorage;
70 } catch {
71 return null;
72 }
73};
74
75/**
76 * The real browser half of the environment `respondToPreloadError` consumes.

Callers 1

browserEnvironmentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected