New geolocation error
This commit is contained in:
parent
0342bdf33f
commit
2bad9d4083
3 changed files with 5 additions and 2 deletions
|
|
@ -37,6 +37,7 @@ class CenterInMyPosition extends React.Component {
|
|||
// window.alert(cod);
|
||||
if (cod === 1) Bert.alert(self.props.t('geo-not-perms-error'), 'danger');
|
||||
else if (cod === 2) Bert.alert(self.props.t('geo-not-avail-error'), 'danger');
|
||||
else if (cod === 3) Bert.alert(self.props.t('geo-not-timeout-error'), 'danger');
|
||||
else Bert.alert(error.message, 'danger');
|
||||
computation.stop();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue