Check for message being edited in beforeunload

9f7677c04b47329379a688021dfaca6e1ebec0f2

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
public/script.js+1 -1
@@ -11732,7 +11732,7 @@ jQuery(async function () {
1173211732 await firstLoadInit();
1173311733
1173411734 window.addEventListener('beforeunload', (e) => {
1173511735 if (isChatSaving || this_edit_mes_id >= 0) {
1173611736 e.preventDefault();
1173711737 e.returnValue = true;
1173811738 }