From 965f2ab8a6002805e746a36ba7625d2cce4d64da Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sat, 3 Aug 2024 18:29:30 -0400 Subject: [PATCH] Test devpanel --- extension/src/devtools/index.ts | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) 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', + () => {}, +);