Fixed debugger bar not disappearing
This commit is contained in:
parent
bb14534fa4
commit
10dc61fcdc
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||||
Loading…
Add table
Reference in a new issue