mascara - move file locations to match extension structure

This commit is contained in:
kumavis 2018-03-28 14:06:59 -07:00
parent 53895f19e0
commit bdf99269e2
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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,

View File

@ -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,