mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-04-26 03:03:42 +03:00
Test devpanel
This commit is contained in:
parent
21c9dcff47
commit
965f2ab8a6
|
@ -1,17 +1,6 @@
|
||||||
function createPanel(url: string) {
|
chrome.devtools.panels.create(
|
||||||
chrome.devtools.panels.create(
|
|
||||||
'Redux',
|
'Redux',
|
||||||
'img/logo/scalable.png',
|
'img/logo/scalable.png',
|
||||||
url,
|
'devpanel.html',
|
||||||
function () {},
|
() => {},
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (chrome.runtime.getBackgroundPage) {
|
|
||||||
// Check if the background page's object is accessible (not in incognito)
|
|
||||||
chrome.runtime.getBackgroundPage((background) => {
|
|
||||||
createPanel(background ? 'window.html' : 'devpanel.html');
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
createPanel('devpanel.html');
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user