Skip to content

Commit

Permalink
feat: test beforeunload compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Leoglme committed Feb 18, 2024
1 parent 9851a22 commit 0b7d620
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions public/mon-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ window.addEventListener('pagehide ', () => {

})

confirm('v3')

function confirmFirst(eventName) {
if(confirm("Leave the page?" + eventName)){
console.log("You are leaving the page")
Expand Down

0 comments on commit 0b7d620

Please sign in to comment.