From 478a07ea81556a62a39c229d4feecf9c0d9a7cdb Mon Sep 17 00:00:00 2001 From: frankiebee Date: Thu, 6 Apr 2017 18:58:41 +0200 Subject: [PATCH] remove unnecessary listner --- mascara/src/proxy.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mascara/src/proxy.js b/mascara/src/proxy.js index 8d91e4553..5ead75f94 100644 --- a/mascara/src/proxy.js +++ b/mascara/src/proxy.js @@ -9,12 +9,7 @@ const background = new SWcontroller({ letBeIdle: false, intervalDelay, }) -window.onfocus = () => { - background.sendMessage('wakeUp') - .catch((err) => { - console.error('problem with wake up', err) - }) -} + const pageStream = new ParentStream() background.on('ready', (_) => { let swStream = SwStream({