Skip to content

Commit

Permalink
Clear geolocationWatchID after unregistering the watcher callback.
Browse files Browse the repository at this point in the history
  • Loading branch information
blujai831 committed Nov 14, 2024
1 parent 73c7ba1 commit feee249
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ function stopSyncingUserMarkerToGeolocation(
) {
if (uiIn.geolocationWatchID !== null) {
navigator.geolocation.clearWatch(uiIn.geolocationWatchID);
uiIn.geolocationWatchID = null;
}
}

Expand Down

0 comments on commit feee249

Please sign in to comment.