app: Allow the IdentifyApp call to fail

This commit is contained in:
Sanne Raymaekers 2021-03-31 15:43:30 +02:00 committed by Tom Gundersen
parent 41f506219c
commit b43b938f28

View file

@ -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 });