Fix typo in sentry dsn naming

This commit is contained in:
ErickSkrauch
2020-01-14 15:21:38 +03:00
parent 7b85004994
commit 7dc22019a5
5 changed files with 9 additions and 9 deletions

View File

@ -21,7 +21,7 @@ const win: { [key: string]: any } = window as any;
history.init();
logger.init({
sentryCdn: (window as any).SENTRY_CDN as string,
sentryDSN: (window as any).SENTRY_DSN as string,
});
const store = storeFactory();

View File

@ -6,9 +6,9 @@ const isTest = process.env.NODE_ENV === 'test';
const isProduction = process.env.NODE_ENV === 'production';
class Logger {
init({ sentryCdn }: { sentryCdn: string }) {
if (sentryCdn) {
Raven.config(sentryCdn, {
init({ sentryDSN }: { sentryDSN: string }) {
if (sentryDSN) {
Raven.config(sentryDSN, {
logger: 'accounts-js-app',
level: 'info',
environment: process.env.APP_ENV,