diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-10-06 08:06:55 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-10-06 08:06:55 +0800 |
commit | b9012a62e5df372a9cd5309e345b5f5ff0230e38 (patch) | |
tree | 553578318e7e067bdb619abb346957ab48e377b7 /mascara/server/util.js | |
parent | bb9c2b3563938832e4b35b6623ef724017093fcb (diff) | |
parent | 53da368d2370edbb78eca063ff701c0492abbff6 (diff) | |
download | tangerine-wallet-browser-b9012a62e5df372a9cd5309e345b5f5ff0230e38.tar tangerine-wallet-browser-b9012a62e5df372a9cd5309e345b5f5ff0230e38.tar.gz tangerine-wallet-browser-b9012a62e5df372a9cd5309e345b5f5ff0230e38.tar.bz2 tangerine-wallet-browser-b9012a62e5df372a9cd5309e345b5f5ff0230e38.tar.lz tangerine-wallet-browser-b9012a62e5df372a9cd5309e345b5f5ff0230e38.tar.xz tangerine-wallet-browser-b9012a62e5df372a9cd5309e345b5f5ff0230e38.tar.zst tangerine-wallet-browser-b9012a62e5df372a9cd5309e345b5f5ff0230e38.zip |
Merge branch 'master' into version-debugging
Diffstat (limited to 'mascara/server/util.js')
-rw-r--r-- | mascara/server/util.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mascara/server/util.js b/mascara/server/util.js index 6e25b35d8..6ab41b729 100644 --- a/mascara/server/util.js +++ b/mascara/server/util.js @@ -7,14 +7,14 @@ module.exports = { } -function serveBundle(server, path, bundle){ - server.get(path, function(req, res){ +function serveBundle (server, path, bundle) { + server.get(path, function (req, res) { res.setHeader('Content-Type', 'application/javascript; charset=UTF-8') res.send(bundle.latest) }) } -function createBundle(entryPoint){ +function createBundle (entryPoint) { var bundleContainer = {} @@ -30,8 +30,8 @@ function createBundle(entryPoint){ return bundleContainer - function bundle() { - bundler.bundle(function(err, result){ + function bundle () { + bundler.bundle(function (err, result) { if (err) { console.log(`Bundle failed! (${entryPoint})`) console.error(err) |