From cd150331f3e8da9c11b8eeed4dc910cbb038dbf7 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Sun, 1 Jan 2023 15:38:34 +0000 Subject: [PATCH] inject: add useSessionId to Window.cdp.send() --- src/launcher/inject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/launcher/inject.js b/src/launcher/inject.js index c8ae486..1d23087 100644 --- a/src/launcher/inject.js +++ b/src/launcher/inject.js @@ -61,7 +61,7 @@ export default async (CDP, proc, injectionType = 'browser', { browserName } = { ipc: IPC, cdp: { - send: (method, params) => CDP.sendMessage(method, params, sessionId) + send: (method, params, useSessionId = true) => CDP.sendMessage(method, params, useSessionId ? sessionId : undefined) }, close: () => {