From c8b112b63fd1de78e01484e3a0d8d821ff304e25 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Thu, 10 Mar 2016 11:25:21 +0200 Subject: [PATCH] react-intl 2-rc1 --- package.json | 2 +- src/index.js | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/package.json b/package.json index 5e4a4dc..219f1a5 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "react-dom": "^0.14.3", "react-height": "^2.0.3", "react-helmet": "^2.3.1", - "react-intl": "=2.0.0-beta-2", + "react-intl": "=v2.0.0-rc-1", "react-motion": "^0.4.0", "react-redux": "^4.0.0", "react-router": "^2.0.0", diff --git a/src/index.js b/src/index.js index 34aae70..2ef133f 100644 --- a/src/index.js +++ b/src/index.js @@ -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