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;