aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src/proxy.js
diff options
context:
space:
mode:
Diffstat (limited to 'mascara/src/proxy.js')
-rw-r--r--mascara/src/proxy.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/mascara/src/proxy.js b/mascara/src/proxy.js
index 3958f7d50..80b4dc516 100644
--- a/mascara/src/proxy.js
+++ b/mascara/src/proxy.js
@@ -1,13 +1,13 @@
const createParentStream = require('iframe-stream').ParentStream
-const SWcontroller = require('client-sw-ready-event/lib/sw-client.js')
+const SwController = require('sw-controller')
const SwStream = require('sw-stream/lib/sw-stream.js')
-const intervalDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000
-const background = new SWcontroller({
+const keepAliveDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000
+const background = new SwController({
fileName: './scripts/background.js',
- letBeIdle: false,
- wakeUpInterval: 30000,
- intervalDelay,
+ keepAlive: true,
+ keepAliveInterval: 30000,
+ keepAliveDelay,
})
const pageStream = createParentStream()