Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit ba4ff52

Browse files
author
Kerry Archibald
committed
typos
Signed-off-by: Kerry Archibald <[email protected]>
1 parent cfe531f commit ba4ff52

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/stores/OwnBeaconStore.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class OwnBeaconStore extends AsyncStoreWithClient<OwnBeaconStoreState> {
6666
/**
6767
* Track when the last position was published
6868
* So we can manually get position on slow interval
69-
* when the target is status
69+
* when the target is stationary
7070
*/
7171
private lastPublishedPositionTimestamp: number | undefined;
7272

@@ -78,8 +78,11 @@ export class OwnBeaconStore extends AsyncStoreWithClient<OwnBeaconStoreState> {
7878
return OwnBeaconStore.internalInstance;
7979
}
8080

81+
/**
82+
* True when we have live beacons
83+
* and geolocation.watchPosition is active
84+
*/
8185
public get isMonitoringLiveLocation() {
82-
// we are watching location as long as this is truthy
8386
return !!this.clearPositionWatch;
8487
}
8588

@@ -199,7 +202,7 @@ export class OwnBeaconStore extends AsyncStoreWithClient<OwnBeaconStoreState> {
199202
// when there are new live beacons
200203
// and we already have a live monitor
201204
// so first position is published quickly
202-
// even when target is stationery
205+
// even when target is stationary
203206
//
204207
// when there is no existing live monitor
205208
// it will be created below by togglePollingLocation
@@ -306,7 +309,7 @@ export class OwnBeaconStore extends AsyncStoreWithClient<OwnBeaconStoreState> {
306309

307310
/**
308311
* Gets the current location
309-
* (as opposed to using watching location)
312+
* (as opposed to using watched location)
310313
* and publishes it to all live beacons
311314
*/
312315
private publishCurrentLocationToBeacons = async () => {

0 commit comments

Comments
 (0)