diff options
author | kumavis <aaron@kumavis.me> | 2016-09-13 15:31:04 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2016-09-13 15:31:04 +0800 |
commit | a4cdd198438816b99630adf7c30d28a8ec2a18bb (patch) | |
tree | afbf1d4de7020f4a60a6f3923a3352e5db44dfae /library/server.js | |
parent | b4e3b83f0467ebd1610c18d318b5d1b54d8863bb (diff) | |
download | tangerine-wallet-browser-a4cdd198438816b99630adf7c30d28a8ec2a18bb.tar.gz tangerine-wallet-browser-a4cdd198438816b99630adf7c30d28a8ec2a18bb.tar.zst tangerine-wallet-browser-a4cdd198438816b99630adf7c30d28a8ec2a18bb.zip |
mascara - everything but the popup bundle
Diffstat (limited to 'library/server.js')
-rw-r--r-- | library/server.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/library/server.js b/library/server.js index 495aba914..033c65358 100644 --- a/library/server.js +++ b/library/server.js @@ -6,6 +6,7 @@ const path = require('path') const zeroBundle = createBundle('./index.js') const controllerBundle = createBundle('./controller.js') +// const popupBundle = createBundle('./popup.js') const appBundle = createBundle('./example/index.js') // @@ -14,6 +15,12 @@ const appBundle = createBundle('./example/index.js') const iframeServer = express() +// serve popup window +// iframeServer.get('/popup/scripts/popup.js', function(req, res){ +// res.send(popupBundle.latest) +// }) +iframeServer.use('/popup', express.static('../dist/chrome')) + // serve controller bundle iframeServer.get('/controller.js', function(req, res){ res.send(controllerBundle.latest) @@ -21,8 +28,7 @@ iframeServer.get('/controller.js', function(req, res){ // serve background controller iframeServer.use(express.static('./server')) -// serve popup window -// iframeServer.use('/popup', express.static('../dist/chrome')) + iframeServer.listen('9001') |