Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private sendException(error: Error) {
if (!this.isDev()) {
console.log('Sending error to monitoring system');
this.ensureLogRocketInitialized();
if (this.appConfig.rawConfig.keys.logrocket) {
LogRocket.captureException(error, {
tags: {
environment: window.location.host
}
});
}
this.track('error', getErrorPayload(error))
}
}
}