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

Fix issue #238, use pagehide not unload listener #250

Merged
merged 1 commit into from
Apr 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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));
});

})();