From 696adcf061a652feacc6a12949e53ff340c919a9 Mon Sep 17 00:00:00 2001 From: Cris Stringfellow <22254235+crislin2046@users.noreply.github.com> Date: Sun, 12 Dec 2021 17:05:20 +0800 Subject: [PATCH] "Looking at errors. Only have the response after header error. Looks good." --- archivist.js | 5 +---- protocol.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/archivist.js b/archivist.js index f68ab41..2f11fd0 100644 --- a/archivist.js +++ b/archivist.js @@ -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}); diff --git a/protocol.js b/protocol.js index 2979123..915f9a4 100644 --- a/protocol.js +++ b/protocol.js @@ -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;