diff --git a/extension/src/devtools/index.ts b/extension/src/devtools/index.ts index 202e6c97..9ef741d2 100644 --- a/extension/src/devtools/index.ts +++ b/extension/src/devtools/index.ts @@ -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', + () => {}, +);