Skip to content

Commit

Permalink
refs #452 Fix splash file path in production
Browse files Browse the repository at this point in the history
  • Loading branch information
h3poteto committed Jul 28, 2018
1 parent 4141e2f commit ad81382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const winURL = process.env.NODE_ENV === 'development'

const splashURL = process.env.NODE_ENV === 'development'
? path.resolve(__dirname, '../../static/splash-screen.html')
: `file://${__dirname}/static/splash-screen.html`
: `${__dirname}/static/splash-screen.html`

// https://github.com/louischatriot/nedb/issues/459
const userData = app.getPath('userData')
Expand Down

0 comments on commit ad81382

Please sign in to comment.