mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-04-25 02:33: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(
|
||||
'Redux',
|
||||
'img/logo/scalable.png',
|
||||
url,
|
||||
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');
|
||||
}
|
||||
chrome.devtools.panels.create(
|
||||
'Redux',
|
||||
'img/logo/scalable.png',
|
||||
'devpanel.html',
|
||||
() => {},
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user