diff --git a/public/script.js b/public/script.js index f2efda2b5..ca5f87850 100644 --- a/public/script.js +++ b/public/script.js @@ -6955,15 +6955,23 @@ export async function saveChat({ chatName, withMetadata, mesId, force = false } throw new Error(result.statusText); } - const forceSaveConfirmed = await Popup.show.confirm( - t`ERROR: Chat integrity check failed.`, - t`Continuing the operation may result in data loss. Would you like to overwrite the chat file anyway? Pressing "NO" will cancel the save operation.`, - { okButton: t`Yes, overwrite`, cancelButton: t`No, cancel` }, - ) === POPUP_RESULT.AFFIRMATIVE; + const popupResult = await Popup.show.input( + t`ERROR: Chat integrity check failed while saving the file.`, + t`
After you click OK, the page will be reloaded to prevent data corruption.
+To confirm an overwrite (and potentially LOSE YOUR DATA), enter OVERWRITE
(in all caps) in the box below before clicking OK.