You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-06 10:22:45 +03:00
increase geolocation timeout options to more realistic values (#8439)
Signed-off-by: Kerry Archibald <kerrya@element.io>
This commit is contained in:
@@ -32,8 +32,8 @@ export enum GeolocationError {
|
||||
}
|
||||
|
||||
const GeolocationOptions = {
|
||||
timeout: 5000,
|
||||
maximumAge: 2000,
|
||||
timeout: 10000,
|
||||
maximumAge: 60000,
|
||||
};
|
||||
|
||||
const isGeolocationPositionError = (error: unknown): error is GeolocationPositionError =>
|
||||
|
@@ -163,8 +163,8 @@ describe('geolocation utilities', () => {
|
||||
|
||||
const [, , options] = geolocation.watchPosition.mock.calls[0];
|
||||
expect(options).toEqual({
|
||||
maximumAge: 2000,
|
||||
timeout: 5000,
|
||||
maximumAge: 60000,
|
||||
timeout: 10000,
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user