cdp-tunnel 1.0.8 → 1.0.9

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.
@@ -44,6 +44,8 @@ var SpecialHandler = (function() {
44
44
  var sessionId = CDPUtils.generateSessionId();
45
45
  State.mapSession(sessionId, tabId, targetId);
46
46
 
47
+ addTabToAutomationGroup(tabId);
48
+
47
49
  return { sessionId: sessionId };
48
50
  });
49
51
  });
@@ -341,7 +343,7 @@ function checkTabVisibility(tabId) {
341
343
  var sessionId = CDPUtils.generateSessionId();
342
344
  State.mapSession(sessionId, target.tabId, targetId);
343
345
 
344
- AutomationBadge.inject(target.tabId);
346
+ addTabToAutomationGroup(target.tabId);
345
347
 
346
348
  if (config.waitForDebuggerOnStart) {
347
349
  State.addPendingDebuggerTab(target.tabId);
@@ -380,6 +382,8 @@ function checkTabVisibility(tabId) {
380
382
  var sessionId = CDPUtils.generateSessionId();
381
383
  State.mapSession(sessionId, tabId, targetId);
382
384
 
385
+ addTabToAutomationGroup(tabId);
386
+
383
387
  var config = State.getAutoAttachConfig();
384
388
  if (config.waitForDebuggerOnStart) {
385
389
  State.addPendingDebuggerTab(tabId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cdp-tunnel",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
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",