aboutsummaryrefslogtreecommitdiffstats
path: root/mascara
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-29 05:06:59 +0800
committerkumavis <aaron@kumavis.me>2018-03-29 05:06:59 +0800
commitbdf99269e275590b31347322961e773ad980b812 (patch)
treecc67a0f26c199e2384110e02ea937c081cb1e429 /mascara
parent53895f19e01146e23702eec52172b4f29cd6f20a (diff)
downloadtangerine-wallet-browser-bdf99269e275590b31347322961e773ad980b812.tar.gz
tangerine-wallet-browser-bdf99269e275590b31347322961e773ad980b812.tar.zst
tangerine-wallet-browser-bdf99269e275590b31347322961e773ad980b812.zip
mascara - move file locations to match extension structure
Diffstat (limited to 'mascara')
-rw-r--r--mascara/server/index.js8
-rw-r--r--mascara/src/proxy.js2
-rw-r--r--mascara/src/ui.js2
3 files changed, 6 insertions, 6 deletions
diff --git a/mascara/server/index.js b/mascara/server/index.js
index 6fb1287cc..0f9b047a7 100644
--- a/mascara/server/index.js
+++ b/mascara/server/index.js
@@ -20,16 +20,16 @@ function createMetamascaraServer () {
server.use(compression())
// ui window
- serveBundle(server, '/ui.js', uiBundle)
+ serveBundle(server, '/scripts/ui.js', uiBundle)
server.use(express.static(path.join(__dirname, '/../ui/'), { setHeaders: (res) => res.set('X-Frame-Options', 'DENY') }))
server.use(express.static(path.join(__dirname, '/../../dist/chrome')))
// metamascara
serveBundle(server, '/metamascara.js', metamascaraBundle)
// proxy
- serveBundle(server, '/proxy/proxy.js', proxyBundle)
- server.use('/proxy/', express.static(path.join(__dirname, '/../proxy')))
+ serveBundle(server, '/scripts/proxy.js', proxyBundle)
+ server.use('/', express.static(path.join(__dirname, '/../proxy')))
// background
- serveBundle(server, '/background.js', backgroundBuild)
+ serveBundle(server, '/scripts/background.js', backgroundBuild)
return server
diff --git a/mascara/src/proxy.js b/mascara/src/proxy.js
index 54c5d5cf4..3958f7d50 100644
--- a/mascara/src/proxy.js
+++ b/mascara/src/proxy.js
@@ -4,7 +4,7 @@ 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',
+ fileName: './scripts/background.js',
letBeIdle: false,
wakeUpInterval: 30000,
intervalDelay,
diff --git a/mascara/src/ui.js b/mascara/src/ui.js
index b272a2e06..21e5f32a9 100644
--- a/mascara/src/ui.js
+++ b/mascara/src/ui.js
@@ -20,7 +20,7 @@ window.METAMASK_PLATFORM_TYPE = 'mascara'
const intervalDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000
const background = new SWcontroller({
- fileName: '/background.js',
+ fileName: './scripts/background.js',
letBeIdle: false,
intervalDelay,
wakeUpInterval: 20000,