aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src/proxy.js
diff options
context:
space:
mode:
authorThomas Huang <tmashuang@users.noreply.github.com>2018-03-31 02:15:12 +0800
committerGitHub <noreply@github.com>2018-03-31 02:15:12 +0800
commit8e0f39353dd47c4a201aaf2ee160912846f2e68b (patch)
tree0fac2629c48dcf4134d8205441766e3c6a41b4ed /mascara/src/proxy.js
parent9d4be1842e7c56e3bfde529ff555dcae8dec3dbd (diff)
parent89e6baa3ba07cc46dcc62886fbe3f1906649ae77 (diff)
downloadtangerine-wallet-browser-8e0f39353dd47c4a201aaf2ee160912846f2e68b.tar.gz
tangerine-wallet-browser-8e0f39353dd47c4a201aaf2ee160912846f2e68b.tar.zst
tangerine-wallet-browser-8e0f39353dd47c4a201aaf2ee160912846f2e68b.zip
Merge pull request #3781 from MetaMask/ci-artifacts
Build - Refactor + CircleCI Mascara builds
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()