mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-29 16:30:54 +05:30
#589: added white-list urls for logger
This commit is contained in:
parent
863aa03547
commit
09baa2a398
@ -1,6 +1,7 @@
|
|||||||
import Raven from 'raven-js';
|
import Raven from 'raven-js';
|
||||||
|
|
||||||
const isTest = process.env.__TEST__; // eslint-disable-line
|
const isTest = process.env.__TEST__; // eslint-disable-line
|
||||||
|
const isProduction = process.env.__PROD__; // eslint-disable-line
|
||||||
|
|
||||||
const logger = {
|
const logger = {
|
||||||
init({sentryCdn}) {
|
init({sentryCdn}) {
|
||||||
@ -18,7 +19,10 @@ const logger = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
},
|
||||||
|
whitelistUrls: isProduction ? [
|
||||||
|
/ely\.by/
|
||||||
|
] : []
|
||||||
}).install();
|
}).install();
|
||||||
|
|
||||||
window.addEventListener('unhandledrejection', (event) => {
|
window.addEventListener('unhandledrejection', (event) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user