Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaTheLEGEND authored Sep 21, 2023
1 parent 3b0df23 commit 4b31e83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ var protocol = window.location.protocol;
var askBeforeUnload=true;

window.onbeforeunload=function(e){
if(askBeforeUnload)return'You have unsaved changes. Do you want to leave this page and discard your changes or stay on this page?';
if(askBeforeUnload)return'Someone may be attempting to close you window. Please confirm or deny this action.';
}

0 comments on commit 4b31e83

Please sign in to comment.