MCPcopy Create free account
hub / github.com/CapSoftware/Cap / loadLiveRecordingManifests

Function loadLiveRecordingManifests

apps/chrome-extension/src/shared/storage.ts:365–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

363};
364
365export const loadLiveRecordingManifests = async (): Promise<
366 LiveRecordingManifest[]
367> => {
368 const result = await getLocal([LIVE_RECORDING_MANIFESTS_KEY]);
369 const saved = result[LIVE_RECORDING_MANIFESTS_KEY];
370 if (!Array.isArray(saved)) return [];
371 return saved.filter(isLiveRecordingManifest);
372};
373
374export const saveLiveRecordingManifest = (manifest: LiveRecordingManifest) =>
375 withKeyLock(LIVE_RECORDING_MANIFESTS_KEY, async () => {

Callers 4

Calls 1

getLocalFunction · 0.85

Tested by

no test coverage detected