cdp-tunnel 2.10.4 → 2.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -334,6 +334,7 @@ var SpecialHandler = (function() {
|
|
|
334
334
|
Logger.info('[TabGroup] chrome.tabs.group returned groupId:', groupId);
|
|
335
335
|
EventBuilder.send('CDPTunnel.debug', { source: 'doGroup', phase: 'groupCreated', tabId: tabId, groupId: groupId }, null, wsManager);
|
|
336
336
|
if (groupId) {
|
|
337
|
+
if (state) state.setGroupIdForClient(clientId, groupId);
|
|
337
338
|
if (chrome.tabGroups) {
|
|
338
339
|
chrome.tabGroups.update(groupId, {
|
|
339
340
|
title: baseName,
|
|
@@ -344,14 +345,12 @@ var SpecialHandler = (function() {
|
|
|
344
345
|
Logger.error('[TabGroup] Failed to update group:', chrome.runtime.lastError.message);
|
|
345
346
|
EventBuilder.send('CDPTunnel.debug', { source: 'doGroup', phase: 'updateGroup', error: chrome.runtime.lastError.message, groupId: groupId }, null, wsManager);
|
|
346
347
|
} else {
|
|
347
|
-
if (state) state.setGroupIdForClient(clientId, groupId);
|
|
348
348
|
updateTabGroupName(clientId, state, wsManager, context ? context.mode : null);
|
|
349
349
|
Logger.info('[TabGroup] Group updated:', groupId, baseName);
|
|
350
350
|
}
|
|
351
351
|
if (callback) callback(true);
|
|
352
352
|
});
|
|
353
353
|
} else {
|
|
354
|
-
if (state) state.setGroupIdForClient(clientId, groupId);
|
|
355
354
|
Logger.info('[TabGroup] Group created but tabGroups.update unavailable (headless):', groupId);
|
|
356
355
|
if (callback) callback(true);
|
|
357
356
|
}
|
package/package.json
CHANGED