react-intl 2-rc1

This commit is contained in:
SleepWalker
2016-03-10 11:25:21 +02:00
parent e94b04551d
commit c8b112b63f
2 changed files with 1 additions and 14 deletions

View File

@@ -22,19 +22,6 @@ import routesFactory from 'routes';
import 'index.scss';
// TODO: временная мера против Intl, который беспощадно спамит консоль
if (process.env.NODE_ENV !== 'production') {
const originalConsoleError = console.error;
if (console.error === originalConsoleError) {
console.error = (...args) => {
if (args[0].indexOf('[React Intl] Missing message:') === 0) {
return;
}
originalConsoleError.call(console, ...args);
};
}
}
const reducer = combineReducers({
...reducers,
routing: routeReducer