diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-10-05 14:03:47 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-10-05 14:03:47 +0800 |
commit | 7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0 (patch) | |
tree | 0dff417975467cf0d7a7d2acaddc65efdace1ca2 /mascara/src/proxy.js | |
parent | 2dba03ffc530e3e2a176aea9712ffc3e189bebc2 (diff) | |
download | tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar.gz tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar.bz2 tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar.lz tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar.xz tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.tar.zst tangerine-wallet-browser-7a9e2aa4f0fe8a12d1fac838f62ca4fbf6763af0.zip |
mascara: linting and code clean up
Diffstat (limited to 'mascara/src/proxy.js')
-rw-r--r-- | mascara/src/proxy.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mascara/src/proxy.js b/mascara/src/proxy.js index 07c5b0e3c..54c5d5cf4 100644 --- a/mascara/src/proxy.js +++ b/mascara/src/proxy.js @@ -2,7 +2,7 @@ const createParentStream = require('iframe-stream').ParentStream const SWcontroller = require('client-sw-ready-event/lib/sw-client.js') const SwStream = require('sw-stream/lib/sw-stream.js') -let intervalDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000 +const intervalDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000 const background = new SWcontroller({ fileName: '/background.js', letBeIdle: false, @@ -12,7 +12,7 @@ const background = new SWcontroller({ const pageStream = createParentStream() background.on('ready', () => { - let swStream = SwStream({ + const swStream = SwStream({ serviceWorker: background.controller, context: 'dapp', }) |