Skip to content

Commit

Permalink
it should be window beforeunload
Browse files Browse the repository at this point in the history
  • Loading branch information
kukushechkin committed Jan 4, 2024
1 parent 8f0321f commit 4b28eca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
});
updateVisibilityState();

document.addEventListener("beforeunload", function(e) {
window.addEventListener("beforeunload", function(e) {
safari.extension.dispatchMessage("com.kukushechkin.MightyTabRefresh.scriptPageWillUnload", {
url: window.location.href
});
Expand Down

0 comments on commit 4b28eca

Please sign in to comment.