From 62354ebb7a3bdc46423df1a95977424bf0a11e28 Mon Sep 17 00:00:00 2001 From: HadesHappy Date: Tue, 7 Feb 2017 17:32:36 +0200 Subject: [PATCH] Deprecate inspecting extensions Related to https://github.com/zalmoxisus/crossbuilder/issues/48 --- src/browser/extension/inject/deprecatedWarn.js | 5 ++--- webpack/base.config.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/browser/extension/inject/deprecatedWarn.js b/src/browser/extension/inject/deprecatedWarn.js index d2f3762..c2dc9e2 100644 --- a/src/browser/extension/inject/deprecatedWarn.js +++ b/src/browser/extension/inject/deprecatedWarn.js @@ -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 */ diff --git a/webpack/base.config.js b/webpack/base.config.js index a8ed0ba..5326389 100644 --- a/webpack/base.config.js +++ b/webpack/base.config.js @@ -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 },