aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src/proxy.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2019-03-12 21:47:21 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-03-12 21:47:21 +0800
commit48047f81947c28cc21f0fb93fe98a2d308078714 (patch)
treefb7a60317d331fadc640149bea15a257b9dd8d06 /mascara/src/proxy.js
parent70e7e592aee53c672639841f029c963331cfae81 (diff)
downloadtangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar.gz
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar.bz2
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar.lz
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar.xz
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.tar.zst
tangerine-wallet-browser-48047f81947c28cc21f0fb93fe98a2d308078714.zip
mascara - remove from project (#6283)
Diffstat (limited to 'mascara/src/proxy.js')
-rw-r--r--mascara/src/proxy.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/mascara/src/proxy.js b/mascara/src/proxy.js
deleted file mode 100644
index 80b4dc516..000000000
--- a/mascara/src/proxy.js
+++ /dev/null
@@ -1,25 +0,0 @@
-const createParentStream = require('iframe-stream').ParentStream
-const SwController = require('sw-controller')
-const SwStream = require('sw-stream/lib/sw-stream.js')
-
-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()
-background.on('ready', () => {
- const swStream = SwStream({
- serviceWorker: background.controller,
- context: 'dapp',
- })
- pageStream.pipe(swStream).pipe(pageStream)
-
-})
-background.on('updatefound', () => window.location.reload())
-
-background.on('error', console.error)
-background.startWorker()