aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/server/index.js
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/server/index.js
parent53895f19e01146e23702eec52172b4f29cd6f20a (diff)
downloadtangerine-wallet-browser-bdf99269e275590b31347322961e773ad980b812.tar
tangerine-wallet-browser-bdf99269e275590b31347322961e773ad980b812.tar.gz
tangerine-wallet-browser-bdf99269e275590b31347322961e773ad980b812.tar.bz2
tangerine-wallet-browser-bdf99269e275590b31347322961e773ad980b812.tar.lz
tangerine-wallet-browser-bdf99269e275590b31347322961e773ad980b812.tar.xz
tangerine-wallet-browser-bdf99269e275590b31347322961e773ad980b812.tar.zst
tangerine-wallet-browser-bdf99269e275590b31347322961e773ad980b812.zip
mascara - move file locations to match extension structure
Diffstat (limited to 'mascara/server/index.js')
-rw-r--r--mascara/server/index.js8
1 files changed, 4 insertions, 4 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