Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

browserRecordingScope.ts

7 lines264 Bytes

1export function resolveBrowserRecordingStopTarget(
2 activeTabId: string | null,
3 requestedTabId?: string,
4): string | null {
5 if (activeTabId === null) return null;
6 return requestedTabId === undefined || requestedTabId === activeTabId ? activeTabId : null;
7}