mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-11-25 11:03:57 +03:00
Remove deprecated inject scripts (#947)
This commit is contained in:
parent
16cad91ede
commit
a9ef668d9b
|
@ -1,7 +0,0 @@
|
|||
// Deprecated warning for inject.bundle.js
|
||||
/* eslint-disable no-console */
|
||||
console.warn(
|
||||
"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 */
|
|
@ -1,22 +0,0 @@
|
|||
// Include this script in Chrome apps and extensions for remote debugging
|
||||
// <script src="chrome-extension://lmhkpmbekcpmknklioeibfkpmmfibljd/js/redux-devtools-extension.bundle.js"></script>
|
||||
|
||||
import { Options } from '../options/syncOptions';
|
||||
|
||||
window.devToolsExtensionID = 'lmhkpmbekcpmknklioeibfkpmmfibljd';
|
||||
require('./contentScript');
|
||||
require('./pageScript');
|
||||
|
||||
chrome.runtime.sendMessage(
|
||||
window.devToolsExtensionID,
|
||||
{ type: 'GET_OPTIONS' },
|
||||
function (response: { readonly options: Options }) {
|
||||
if (!response.options.inject) {
|
||||
const urls = response.options.urls.split('\n').filter(Boolean).join('|');
|
||||
if (!location.href.match(new RegExp(urls))) return;
|
||||
}
|
||||
|
||||
window.devToolsOptions = response.options;
|
||||
window.__REDUX_DEVTOOLS_EXTENSION__.notifyErrors();
|
||||
}
|
||||
);
|
|
@ -52,11 +52,7 @@
|
|||
}
|
||||
],
|
||||
"devtools_page": "devtools.html",
|
||||
"web_accessible_resources": [
|
||||
"page.bundle.js",
|
||||
"inject.bundle.js",
|
||||
"redux-devtools-extension.bundle.js"
|
||||
],
|
||||
"web_accessible_resources": ["page.bundle.js"],
|
||||
"externally_connectable": {
|
||||
"ids": ["*"]
|
||||
},
|
||||
|
|
|
@ -49,11 +49,7 @@
|
|||
}
|
||||
],
|
||||
"devtools_page": "devtools.html",
|
||||
"web_accessible_resources": [
|
||||
"page.bundle.js",
|
||||
"inject.bundle.js",
|
||||
"redux-devtools-extension.bundle.js"
|
||||
],
|
||||
"web_accessible_resources": ["page.bundle.js"],
|
||||
"permissions": [
|
||||
"notifications",
|
||||
"contextMenus",
|
||||
|
|
|
@ -18,11 +18,6 @@ const baseConfig = (params) => ({
|
|||
devtools: [`${extpath}devtools/index`],
|
||||
content: [mock, `${extpath}inject/contentScript`],
|
||||
pagewrap: [`${extpath}inject/pageScriptWrap`],
|
||||
'redux-devtools-extension': [
|
||||
`${extpath}inject/index`,
|
||||
`${extpath}inject/deprecatedWarn`,
|
||||
],
|
||||
inject: [`${extpath}inject/index`, `${extpath}inject/deprecatedWarn`],
|
||||
...params.inputExtra,
|
||||
},
|
||||
output: {
|
||||
|
|
Loading…
Reference in New Issue
Block a user