cdp-tunnel 1.6.0 → 1.6.1

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.
@@ -46,6 +46,7 @@ var SpecialHandler = (function() {
46
46
  if (isAlreadyAttached) {
47
47
  var newSessionId = CDPUtils.generateSessionId();
48
48
  State.mapSession(newSessionId, tabId, targetId);
49
+ muteTabIfNeeded(tabId);
49
50
  Logger.info('[CDP] Created additional session:', newSessionId, 'for tab:', tabId);
50
51
  return { sessionId: newSessionId };
51
52
  }
@@ -127,7 +128,9 @@ var SpecialHandler = (function() {
127
128
  function addTabToAutomationGroup(tabId, clientId) {
128
129
  Logger.info('[TabGroup] Starting addTabToAutomationGroup for tabId:', tabId, 'clientId:', clientId);
129
130
 
130
- muteTabIfNeeded(tabId);
131
+ setTimeout(function() {
132
+ muteTabIfNeeded(tabId);
133
+ }, 500);
131
134
 
132
135
  var groupName;
133
136
  var groupClientId = clientId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-tunnel",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Chrome Extension CDP Proxy - 通过 Chrome 扩展将 chrome.debugger API 暴露为 WebSocket 端点",
5
5
  "main": "server/proxy-server.js",
6
6
  "bin": "./cli/index.js",