Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Merge pull request #801 from NebulousLabs/hotfix/path-fix
Browse files Browse the repository at this point in the history
Check env for app.html entry
  • Loading branch information
lukechampine authored Jul 13, 2018
2 parents 639abce + 8e2c497 commit 9b0ba1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/mainjs/initWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ export default function (config) {
mainWindow.on('resize', onBoundsChange(mainWindow, config))

// Load the index.html of the app.
mainWindow.loadURL(Path.join('file://', process.cwd(), 'app.html'))
const appEntry = process.env.NODE_ENV === 'development'
? process.cwd()
: app.getAppPath()
mainWindow.loadURL(Path.join('file://', appEntry, 'app.html'))
// Choose not to show the menubar
if (process.platform !== 'darwin') {
mainWindow.setMenuBarVisibility(false)
Expand Down

0 comments on commit 9b0ba1a

Please sign in to comment.