diff --git a/src/plugins/geolocation.ts b/src/plugins/geolocation.ts index 539541e1b9..9e57a72b87 100644 --- a/src/plugins/geolocation.ts +++ b/src/plugins/geolocation.ts @@ -174,7 +174,7 @@ export class Geolocation { * @param {GeolocationOptions} options The [geolocation options](https://developer.mozilla.org/en-US/docs/Web/API/PositionOptions). * @return Returns an Observable that notifies with the [position](https://developer.mozilla.org/en-US/docs/Web/API/Position) of the device, or errors. */ - static watchPosition(options?: GeolocationOptions): Observable { + static watchPosition(options?: GeolocationOptions): Observable { return new Observable( (observer: any) => { let watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options);