mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 07:24:56 -06:00
fix flow error on missing maximumAge for getCurrentPosition
This commit is contained in:
parent
54f5bf2893
commit
f992412bd1
1 changed files with 2 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
import { Observable, type Observer } from 'rxjs';
|
||||
|
||||
export default Observable.create((obs: Observer<Position>): Observable<Position> => {
|
||||
// $FlowFixMe: property maximumAge not found on object literal
|
||||
navigator.geolocation.getCurrentPosition(
|
||||
(pos: Position) => obs.next(pos),
|
||||
err => {
|
||||
|
|
@ -9,8 +10,7 @@ export default Observable.create((obs: Observer<Position>): Observable<Position>
|
|||
},
|
||||
{
|
||||
enableHighAccuracy: false,
|
||||
maximumAge: 10000,
|
||||
timeout: 1000,
|
||||
timeout: 2000,
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue