mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Don't include the accuracy parameter in location events if accuracy could not be determined. (#7375)
* Don't include accuracy on geouri if not defined * Use !== undefined * Add a )
This commit is contained in:
parent
11aa6c7435
commit
b952fef195
1 changed files with 3 additions and 2 deletions
|
@ -188,9 +188,10 @@ class LocationPicker extends React.Component<IProps, IState> {
|
|||
private getGeoUri = (position) => {
|
||||
return (`geo:${ position.coords.latitude },` +
|
||||
position.coords.longitude +
|
||||
( position.coords.altitude != null ?
|
||||
( position.coords.altitude !== undefined ?
|
||||
`,${ position.coords.altitude }` : '' ) +
|
||||
`;u=${ position.coords.accuracy }`);
|
||||
( position.coords.accuracy !== undefined ?
|
||||
`;u=${ position.coords.accuracy }` : '' ));
|
||||
};
|
||||
|
||||
private onOk = () => {
|
||||
|
|
Loading…
Reference in a new issue