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())
|
server.use(compression())
|
||||||
|
|
||||||
// ui window
|
// 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, '/../ui/'), { setHeaders: (res) => res.set('X-Frame-Options', 'DENY') }))
|
||||||
server.use(express.static(path.join(__dirname, '/../../dist/chrome')))
|
server.use(express.static(path.join(__dirname, '/../../dist/chrome')))
|
||||||
// metamascara
|
// metamascara
|
||||||
serveBundle(server, '/metamascara.js', metamascaraBundle)
|
serveBundle(server, '/metamascara.js', metamascaraBundle)
|
||||||
// proxy
|
// proxy
|
||||||
serveBundle(server, '/proxy/proxy.js', proxyBundle)
|
serveBundle(server, '/scripts/proxy.js', proxyBundle)
|
||||||
server.use('/proxy/', express.static(path.join(__dirname, '/../proxy')))
|
server.use('/', express.static(path.join(__dirname, '/../proxy')))
|
||||||
// background
|
// background
|
||||||
serveBundle(server, '/background.js', backgroundBuild)
|
serveBundle(server, '/scripts/background.js', backgroundBuild)
|
||||||
|
|
||||||
return server
|
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 intervalDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000
|
||||||
const background = new SWcontroller({
|
const background = new SWcontroller({
|
||||||
fileName: '/background.js',
|
fileName: './scripts/background.js',
|
||||||
letBeIdle: false,
|
letBeIdle: false,
|
||||||
wakeUpInterval: 30000,
|
wakeUpInterval: 30000,
|
||||||
intervalDelay,
|
intervalDelay,
|
||||||
|
|
|
@ -20,7 +20,7 @@ window.METAMASK_PLATFORM_TYPE = 'mascara'
|
||||||
const intervalDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000
|
const intervalDelay = Math.floor(Math.random() * (30000 - 1000)) + 1000
|
||||||
|
|
||||||
const background = new SWcontroller({
|
const background = new SWcontroller({
|
||||||
fileName: '/background.js',
|
fileName: './scripts/background.js',
|
||||||
letBeIdle: false,
|
letBeIdle: false,
|
||||||
intervalDelay,
|
intervalDelay,
|
||||||
wakeUpInterval: 20000,
|
wakeUpInterval: 20000,
|
||||||
|
|
Loading…
Reference in New Issue