feat: reset recording state

This commit is contained in:
karishmas6
2024-09-12 21:02:27 +05:30
parent ce96510b0b
commit d107609838

View File

@@ -199,6 +199,13 @@ async function readyForRunHandler(browserId: string, fileName: string, runId: st
}
}
function resetRecordingState(browserId: string, fileName: string, runId: string) {
// Reset the running recording name, log, and run id to empty strings
browserId = '';
fileName = '';
runId = '';
logger.log(`info`, `reset values for ${browserId}, ${fileName}, and ${runId}`);
}
async function handleRunRecording(fileName: string, runId: string) {
try {