inject: add useSessionId to Window.cdp.send()
This commit is contained in:
parent
e1fa2d4389
commit
cd150331f3
@ -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: () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user