mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
mascara - proxy - small cleanup
This commit is contained in:
parent
d2d6f6a858
commit
0ab37b52c0
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user