Fixed debugger bar not disappearing

This commit is contained in:
z0ccc 2023-01-30 01:58:29 -05:00
parent bb14534fa4
commit 10dc61fcdc

View file

@ -22,8 +22,9 @@ const attachDebugger = (tabId: number) => {
storage.lon || storage.lon ||
storage.locale || storage.locale ||
storage.userAgent) && storage.userAgent) &&
(!storage.locationBrowserDefault || !storage.userAgentBrowserDefault) ((storage.locationBrowserDefault !== undefined && !storage.locationBrowserDefault) || (storage.userAgentBrowserDefault !== undefined && !storage.userAgentBrowserDefault))
) { ) {
chrome.debugger.attach({ tabId: tabId }, '1.3', () => { chrome.debugger.attach({ tabId: tabId }, '1.3', () => {
if (!chrome.runtime.lastError) { if (!chrome.runtime.lastError) {
if (!storage.locationBrowserDefault) { if (!storage.locationBrowserDefault) {