cdp-tunnel 2.7.1 → 2.7.2
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
package/server/proxy-server.js
CHANGED
|
@@ -923,11 +923,9 @@ function handlePluginConnection(ws, clientInfo, request) {
|
|
|
923
923
|
}
|
|
924
924
|
if (mapping.isGetTargets && parsed.result && parsed.result.targetInfos) {
|
|
925
925
|
const clientId = mapping.clientId;
|
|
926
|
-
const pluginWsForGetTargets = ws;
|
|
927
926
|
parsed.result.targetInfos = parsed.result.targetInfos.filter(t => {
|
|
928
927
|
if (t.type !== 'page') return true;
|
|
929
928
|
const ownerClient = ns.targetIdToClientId.get(t.targetId);
|
|
930
|
-
if (!ownerClient) return true;
|
|
931
929
|
return ownerClient === clientId;
|
|
932
930
|
});
|
|
933
931
|
console.log(`[GET TARGETS FILTERED] client=${clientId} returned ${parsed.result.targetInfos.filter(t => t.type === 'page').length} page targets`);
|