fix: only skip disconnect for connecting tabs, not all non-connected
This commit is contained in:
@@ -999,8 +999,8 @@ chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
|
|||||||
}
|
}
|
||||||
} else if (tabs.has(tabId)) {
|
} else if (tabs.has(tabId)) {
|
||||||
const tabInfo = tabs.get(tabId)
|
const tabInfo = tabs.get(tabId)
|
||||||
if (tabInfo?.state !== 'connected') {
|
if (tabInfo?.state === 'connecting') {
|
||||||
logger.debug('Tab removed from group while not connected, ignoring:', tabId)
|
logger.debug('Tab removed from group while connecting, ignoring:', tabId)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
logger.debug('Tab manually removed from playwriter group:', tabId)
|
logger.debug('Tab manually removed from playwriter group:', tabId)
|
||||||
|
|||||||
Reference in New Issue
Block a user