MCPcopy Index your code
hub / github.com/CapSoftware/Cap / normalizeRecordingMode

Function normalizeRecordingMode

apps/chrome-extension/src/shared/storage.ts:539–545  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

537};
538
539const normalizeRecordingMode = (value: unknown): RecordingMode =>
540 value === "tab" ||
541 value === "fullscreen" ||
542 value === "window" ||
543 value === "camera"
544 ? value
545 : defaultSettings.capture.recordingMode;
546
547const normalizeDevicePreference = (value: unknown): DevicePreference | null => {
548 if (!value || typeof value !== "object") return null;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected