cdp-tunnel 3.2.6 → 3.3.0
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.
package/package.json
CHANGED
|
@@ -256,8 +256,8 @@ class PortPoolManager {
|
|
|
256
256
|
handlePluginMessage(msg, pluginWs) {
|
|
257
257
|
if (!msg) return false;
|
|
258
258
|
|
|
259
|
-
// 1. 响应消息:id 以 pool
|
|
260
|
-
if (msg.id && typeof msg.id === 'string' && msg.id.startsWith('pool')) {
|
|
259
|
+
// 1. 响应消息:id 以 pool 开头(排除事件——事件有 method 字段)
|
|
260
|
+
if (msg.id && typeof msg.id === 'string' && msg.id.startsWith('pool') && !msg.method) {
|
|
261
261
|
// 内部命令(ensureVisible 用的)响应直接丢弃
|
|
262
262
|
if (msg.id.includes('_internal')) {
|
|
263
263
|
return true;
|