fix(initAnalytics): Add catch.

This commit is contained in:
Hristo Terezov 2019-01-07 18:55:39 +00:00
parent 155c7ba633
commit c2b2b4eba4
1 changed files with 5 additions and 2 deletions

View File

@ -91,8 +91,11 @@ export function initAnalytics({ getState }: { getState: Function }) {
// Set the handlers last, since this triggers emptying of the cache
analytics.setAnalyticsHandlers(handlers);
},
error => analytics.dispose() && logger.error(error));
})
.catch(error => {
analytics.dispose();
logger.error(error);
});
}
/**