"Looking at errors. Only have the response after header error. Looks good."

This commit is contained in:
Cris Stringfellow 2021-12-12 17:05:20 +08:00
parent f08e9a1b5f
commit 696adcf061
2 changed files with 2 additions and 5 deletions

View File

@ -126,12 +126,9 @@ async function collect({chrome_port:port, mode} = {}) {
urlPattern: "http*://*",
requestStage
}
]
],
});
await send("Network.setCacheDisabled", {cacheDisabled:true});
await send("Network.setBypassServiceWorker", {bypass:true});
await send("Target.setDiscoverTargets", {discover:true});
await send("Target.setAutoAttach", {autoAttach:true, waitForDebuggerOnStart:false, flatten: true});

View File

@ -86,7 +86,7 @@ export async function connect({port:port = 9222} = {}) {
const stringMessage = message;
message = JSON.parse(message);
if ( message.error ) {
DEBUG && console.warn(message);
console.warn(message);
}
const {sessionId} = message;
const {method, params} = message;