diff --git a/lib/Page.js b/lib/Page.js index 345d426ee0b..e4871717b97 100644 --- a/lib/Page.js +++ b/lib/Page.js @@ -97,7 +97,7 @@ class Page extends EventEmitter { // If we don't detach from service workers, they will never die. client.send('Target.detachFromTarget', { sessionId: event.sessionId - }); + }).catch(debugError); return; } const session = client._createSession(event.targetInfo.targetId, event.sessionId);