Skip to content

Commit

Permalink
Deprecate inspecting extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
HadesHappy committed Feb 7, 2017
1 parent 6d3ea30 commit 62354eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/browser/extension/inject/deprecatedWarn.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Deprecated warning for inject.bundle.js
const prefix = `chrome-extension://${window.devToolsExtensionID}/js/`;
/* eslint-disable no-console */
console.warn(
`Using '${prefix}inject.bundle.js' is deprecated. ` +
`Please use '${prefix}redux-devtools-extension.js' instead.`
'Using Redux DevTools inside extensions is deprecated and won\'t be supported in the next major version. ' +
'Please use https://github.com/zalmoxisus/remote-redux-devtools instead.'
);
/* eslint-enable no-console */
2 changes: 1 addition & 1 deletion webpack/base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const baseConfig = (params) => ({
devtools: [ `${extpath}devtools/index` ],
content: [ mock, `${extpath}inject/contentScript` ],
pagewrap: [ `${extpath}inject/pageScriptWrap` ],
'redux-devtools-extension': [ `${extpath}inject/index` ],
'redux-devtools-extension': [ `${extpath}inject/index`, `${extpath}inject/deprecatedWarn` ],
inject: [ `${extpath}inject/index`, `${extpath}inject/deprecatedWarn` ],
...params.inputExtra
},
Expand Down

0 comments on commit 62354eb

Please sign in to comment.