fix: instant discard redirect

This commit is contained in:
Karishma Shukla
2025-09-23 20:21:24 +05:30
committed by GitHub
parent d2e0324312
commit a0e6fe8481

View File

@@ -41,8 +41,6 @@ const BrowserRecordingSave = () => {
const goToMainMenu = async () => {
if (browserId) {
await stopRecording(browserId);
const notificationData = {
type: 'warning',
message: t('browser_recording.notifications.terminated'),
@@ -65,6 +63,10 @@ const BrowserRecordingSave = () => {
setBrowserId(null);
window.close();
stopRecording(browserId).catch((error) => {
console.warn('Background cleanup failed:', error);
});
}
};
@@ -242,4 +244,4 @@ const modalStyle = {
height: 'fit-content',
display: 'block',
padding: '20px',
};
};