Fixed bar not going away after selecting default settings
This commit is contained in:
parent
50e53f8507
commit
0765375063
1 changed files with 6 additions and 5 deletions
|
|
@ -16,11 +16,12 @@ const attachDebugger = (tabId: number) => {
|
||||||
],
|
],
|
||||||
(storage) => {
|
(storage) => {
|
||||||
if (
|
if (
|
||||||
storage.timezone ||
|
(storage.timezone ||
|
||||||
storage.lat ||
|
storage.lat ||
|
||||||
storage.lon ||
|
storage.lon ||
|
||||||
storage.locale ||
|
storage.locale ||
|
||||||
storage.userAgent
|
storage.userAgent) &&
|
||||||
|
!storage.userAgentBrowserDefault
|
||||||
) {
|
) {
|
||||||
chrome.debugger.attach({ tabId: tabId }, '1.3', () => {
|
chrome.debugger.attach({ tabId: tabId }, '1.3', () => {
|
||||||
if (!chrome.runtime.lastError) {
|
if (!chrome.runtime.lastError) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue