Skip to content

Commit

Permalink
Don't automatically generate the directory path
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed May 23, 2017
1 parent 39fe4a4 commit d10b703
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ const adjustRenderer = (protocol, dir) => {
}

module.exports = async (electron, dir, port) => {
const directory = dir || path.join(process.cwd(), 'renderer')

if (!isDev) {
adjustRenderer(electron.protocol, directory)
adjustRenderer(electron.protocol, dir)
return
}

await devServer(electron.app, directory, port)
await devServer(electron.app, dir, port)
}

0 comments on commit d10b703

Please sign in to comment.