mascara - move file locations to match extension structure
This commit is contained in:
parent
53895f19e0
commit
bdf99269e2
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue