aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src/proxy.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-31 04:57:50 +0800
committerkumavis <aaron@kumavis.me>2018-03-31 04:57:50 +0800
commit7dde948c451a24313ca1d98b804a761245cc61c1 (patch)
treefc85c1d727f9dd4b95411e5f822e28d12874a720 /mascara/src/proxy.js
parent32bb09bcb9dd5f9db86967128f7d0fe154fe9922 (diff)
parent8e0f39353dd47c4a201aaf2ee160912846f2e68b (diff)
downloadtangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar.gz
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar.bz2
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar.lz
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar.xz
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.tar.zst
tangerine-wallet-browser-7dde948c451a24313ca1d98b804a761245cc61c1.zip
Merge branch 'master' of github.com:MetaMask/metamask-extension into ci-screens
Diffstat (limited to 'mascara/src/proxy.js')
-rw-r--r--mascara/src/proxy.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/mascara/src/proxy.js b/mascara/src/proxy.js
index 54c5d5cf4..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({
- fileName: '/background.js',
- letBeIdle: false,
- wakeUpInterval: 30000,
- intervalDelay,
+const keepAliveDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000
+const background = new SwController({
+ fileName: './scripts/background.js',
+ keepAlive: true,
+ keepAliveInterval: 30000,
+ keepAliveDelay,
})
const pageStream = createParentStream()