diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-03 07:31:03 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-03 07:31:03 +0800 |
commit | 35d83c478a007831e39d1ae6eb4715312d2809d6 (patch) | |
tree | 6b006fafc80d3bb51b9bb0881f9f4f36018596a6 /mascara | |
parent | ce0232fa1eeb2033a93618552189b5394b24fb4f (diff) | |
download | tangerine-wallet-browser-35d83c478a007831e39d1ae6eb4715312d2809d6.tar tangerine-wallet-browser-35d83c478a007831e39d1ae6eb4715312d2809d6.tar.gz tangerine-wallet-browser-35d83c478a007831e39d1ae6eb4715312d2809d6.tar.bz2 tangerine-wallet-browser-35d83c478a007831e39d1ae6eb4715312d2809d6.tar.lz tangerine-wallet-browser-35d83c478a007831e39d1ae6eb4715312d2809d6.tar.xz tangerine-wallet-browser-35d83c478a007831e39d1ae6eb4715312d2809d6.tar.zst tangerine-wallet-browser-35d83c478a007831e39d1ae6eb4715312d2809d6.zip |
fix mascara/example/server.js warnings
Diffstat (limited to 'mascara')
-rw-r--r-- | mascara/example/server.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mascara/example/server.js b/mascara/example/server.js index d39c19600..bdb1efa16 100644 --- a/mascara/example/server.js +++ b/mascara/example/server.js @@ -1,8 +1,8 @@ const express = require('express') +const path = require('path') const createMetamascaraServer = require('../server/') const createBundle = require('../server/util').createBundle const serveBundle = require('../server/util').serveBundle - // // Iframe Server // @@ -23,7 +23,7 @@ const dappServer = express() // serve dapp bundle serveBundle(dappServer, '/app.js', createBundle(require.resolve('./app.js'))) -dappServer.use(express.static(__dirname + '/app/')) +dappServer.use(express.static(path.join(__dirname, '/app/'))) // start the server const dappPort = '9002' |