Merge pull request #804 from getmaxun/discard-instant
fix: instant discard redirect
This commit is contained in:
@@ -41,8 +41,6 @@ const BrowserRecordingSave = () => {
|
|||||||
|
|
||||||
const goToMainMenu = async () => {
|
const goToMainMenu = async () => {
|
||||||
if (browserId) {
|
if (browserId) {
|
||||||
await stopRecording(browserId);
|
|
||||||
|
|
||||||
const notificationData = {
|
const notificationData = {
|
||||||
type: 'warning',
|
type: 'warning',
|
||||||
message: t('browser_recording.notifications.terminated'),
|
message: t('browser_recording.notifications.terminated'),
|
||||||
@@ -65,6 +63,10 @@ const BrowserRecordingSave = () => {
|
|||||||
setBrowserId(null);
|
setBrowserId(null);
|
||||||
|
|
||||||
window.close();
|
window.close();
|
||||||
|
|
||||||
|
stopRecording(browserId).catch((error) => {
|
||||||
|
console.warn('Background cleanup failed:', error);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -242,4 +244,4 @@ const modalStyle = {
|
|||||||
height: 'fit-content',
|
height: 'fit-content',
|
||||||
display: 'block',
|
display: 'block',
|
||||||
padding: '20px',
|
padding: '20px',
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user