This commit is contained in:
zombiej 2019-02-27 15:00:18 +08:00 committed by 偏右
parent b69f0e5e97
commit 5b924bd938

View File

@ -19,8 +19,18 @@ if (typeof window !== 'undefined' && navigator.serviceWorker) {
});
}
LogRocket.init('kpuw4z/ant-design');
setupLogRocketReact(LogRocket);
window.addEventListener('error', function(e) {
// Ignore ResizeObserver error
if (e.message === 'ResizeObserver loop limit exceeded') {
e.stopPropagation();
e.stopImmediatePropagation();
}
});
if (process.env.NODE_ENV === 'production') {
LogRocket.init('kpuw4z/ant-design');
setupLogRocketReact(LogRocket);
}
if (typeof window !== 'undefined') {
/* eslint-disable global-require */