fix: only skip disconnect for connecting tabs, not all non-connected

This commit is contained in:
Tommy D. Rossi
2025-12-30 13:25:44 +01:00
parent 582ec42f9f
commit 802abde340
+2 -2
View File
@@ -999,8 +999,8 @@ chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
}
} else if (tabs.has(tabId)) {
const tabInfo = tabs.get(tabId)
if (tabInfo?.state !== 'connected') {
logger.debug('Tab removed from group while not connected, ignoring:', tabId)
if (tabInfo?.state === 'connecting') {
logger.debug('Tab removed from group while connecting, ignoring:', tabId)
return
}
logger.debug('Tab manually removed from playwriter group:', tabId)