#3809 Add beforeunload event listener to prompt user when chat is saving

This commit is contained in:
Cohee
2025-04-04 15:58:06 +00:00
parent 7987f02dee
commit 6f543e860f

View File

@ -12209,4 +12209,11 @@ jQuery(async function () {
});
initCustomSelectedSamplers();
window.addEventListener('beforeunload', (e) => {
if (isChatSaving) {
e.preventDefault();
e.returnValue = true;
}
});
});