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 701091f commit 7bd23fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/mon-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
// }


document.addEventListener("visibilitychange", () => {
alert(document.hidden)
document.addEventListener("unload", () => {
alert("unload")
});

0 comments on commit 7bd23fb

Please sign in to comment.