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 )pull/21833/head
parent
11aa6c7435
commit
b952fef195
|
@ -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 New Issue