From 4c5f013d15acd935c1a486b71e31788ab039e1f6 Mon Sep 17 00:00:00 2001 From: Erez Rokah Date: Thu, 28 Nov 2019 11:02:19 +0200 Subject: [PATCH] chore: fix some dev mode console errors (#2924) --- packages/netlify-cms-core/src/redux/index.js | 2 +- .../netlify-cms-widget-markdown/src/MarkdownControl/Toolbar.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/netlify-cms-core/src/redux/index.js b/packages/netlify-cms-core/src/redux/index.js index d3076d1f..720b8011 100644 --- a/packages/netlify-cms-core/src/redux/index.js +++ b/packages/netlify-cms-core/src/redux/index.js @@ -7,7 +7,7 @@ const store = createStore( reducer, compose( applyMiddleware(thunkMiddleware, waitUntilAction), - window.devToolsExtension ? window.devToolsExtension() : f => f, + window.__REDUX_DEVTOOLS_EXTENSION__ ? window.__REDUX_DEVTOOLS_EXTENSION__() : f => f, ), ); diff --git a/packages/netlify-cms-widget-markdown/src/MarkdownControl/Toolbar.js b/packages/netlify-cms-widget-markdown/src/MarkdownControl/Toolbar.js index b5a86bbc..7e7891c9 100644 --- a/packages/netlify-cms-widget-markdown/src/MarkdownControl/Toolbar.js +++ b/packages/netlify-cms-widget-markdown/src/MarkdownControl/Toolbar.js @@ -175,7 +175,7 @@ export default class Toolbar extends React.Component { onBlockClick(undefined, optionKey)} /> ),