app: Allow the IdentifyApp call to fail
This commit is contained in:
parent
41f506219c
commit
b43b938f28
1 changed files with 3 additions and 1 deletions
|
|
@ -20,7 +20,9 @@ class App extends Component {
|
|||
|
||||
componentDidMount () {
|
||||
insights.chrome.init();
|
||||
insights.chrome.identifyApp('image-builder');
|
||||
insights.chrome.identifyApp('image-builder').catch(() => {
|
||||
/* We are not in the menu so this call is allowed to fail */
|
||||
});
|
||||
this.appNav = insights.chrome.on('APP_NAVIGATION', event => this.props.history.push(`/${event.navId}`));
|
||||
insights.chrome.auth.getUser().then(data => {
|
||||
this.setState({ identity: data.identity });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue