1
1
mirror of https://github.com/reduxjs/redux-devtools.git synced 2025-03-01 09:50:38 +03:00
This commit is contained in:
Dan Abramov 2015-12-27 00:08:48 +00:00
commit 6dcde1f83b

View File

@ -67,7 +67,10 @@ function computeNextEntry(reducer, action, state, error) {
nextState = reducer(state, action);
} catch (err) {
nextError = err.toString();
console.error(err.stack || err);
if (typeof window === 'object' && typeof window.chrome !== 'undefined') {
// Solve the issue with loosing sourceMaps in Chrome
setTimeout(() => { throw err; }, 0);
} else console.error(err.stack || err);
}
return {