Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
Fix issue #238, use pagehide not unload listener
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmer committed Apr 21, 2022
1 parent 0c014b0 commit ff30444
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/content-scripts/pageManager.content.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,7 @@ import { fromMonotonicClock } from "../timing.js";
// Send the page visit stop event on the window unload event,
// using the timestamp for the unload event on the global
// monotonic clock
window.addEventListener("unload", (event) => {
window.addEventListener("pagehide", (event) => {
pageVisitStop(fromMonotonicClock(event.timeStamp, true));
});

})();

0 comments on commit ff30444

Please sign in to comment.