mirror of https://github.com/vector-im/riot-web
increase geolocation timeout options to more realistic values (#8439)
Signed-off-by: Kerry Archibald <kerrya@element.io>pull/28788/head^2
parent
6120adaedd
commit
c4e988f406
|
@ -32,8 +32,8 @@ export enum GeolocationError {
|
||||||
}
|
}
|
||||||
|
|
||||||
const GeolocationOptions = {
|
const GeolocationOptions = {
|
||||||
timeout: 5000,
|
timeout: 10000,
|
||||||
maximumAge: 2000,
|
maximumAge: 60000,
|
||||||
};
|
};
|
||||||
|
|
||||||
const isGeolocationPositionError = (error: unknown): error is GeolocationPositionError =>
|
const isGeolocationPositionError = (error: unknown): error is GeolocationPositionError =>
|
||||||
|
|
|
@ -163,8 +163,8 @@ describe('geolocation utilities', () => {
|
||||||
|
|
||||||
const [, , options] = geolocation.watchPosition.mock.calls[0];
|
const [, , options] = geolocation.watchPosition.mock.calls[0];
|
||||||
expect(options).toEqual({
|
expect(options).toEqual({
|
||||||
maximumAge: 2000,
|
maximumAge: 60000,
|
||||||
timeout: 5000,
|
timeout: 10000,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue