diff options
author | kumavis <aaron@kumavis.me> | 2017-09-16 04:13:13 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2017-09-16 04:13:13 +0800 |
commit | 0ab37b52c0540e8877321b40fc742928e96f7ee3 (patch) | |
tree | 8ce8b92a69fd3ac55135cab435d6cf7d46a04995 /mascara | |
parent | d2d6f6a858a1ffa1871830f0fbc39ecc76935321 (diff) | |
download | dexon-wallet-0ab37b52c0540e8877321b40fc742928e96f7ee3.tar.gz dexon-wallet-0ab37b52c0540e8877321b40fc742928e96f7ee3.tar.zst dexon-wallet-0ab37b52c0540e8877321b40fc742928e96f7ee3.zip |
mascara - proxy - small cleanup
Diffstat (limited to 'mascara')
-rw-r--r-- | mascara/src/proxy.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mascara/src/proxy.js b/mascara/src/proxy.js index 5b95175f..07c5b0e3 100644 --- a/mascara/src/proxy.js +++ b/mascara/src/proxy.js @@ -1,7 +1,6 @@ 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') -const SetupUntrustedComunication = ('./lib/setup-untrusted-connection.js') let intervalDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000 const background = new SWcontroller({ @@ -12,7 +11,7 @@ const background = new SWcontroller({ }) const pageStream = createParentStream() -background.on('ready', (_) => { +background.on('ready', () => { let swStream = SwStream({ serviceWorker: background.controller, context: 'dapp', |