feat: set recording url if session exists

This commit is contained in:
Rohit
2025-03-11 12:59:30 +05:30
parent 08da78c417
commit b7d06cd8cc

View File

@@ -82,8 +82,14 @@ const BrowserRecordingSave = () => {
socket?.emit('new-recording'); socket?.emit('new-recording');
socket.emit('input:url', initialUrl); socket.emit('input:url', initialUrl);
// Update the URL in the navbar to match // Update the URL in the navbar to match
let sessionInitialUrl = window.sessionStorage.getItem('initialUrl');
if (sessionInitialUrl) {
setRecordingUrl(sessionInitialUrl);
window.sessionStorage.setItem('recordingUrl', sessionInitialUrl);
} else {
setRecordingUrl(initialUrl); setRecordingUrl(initialUrl);
} }
}
// Close the reset confirmation modal // Close the reset confirmation modal
setOpenResetModal(false); setOpenResetModal(false);