refs #452 Fix splash file path in production

This commit is contained in:
AkiraFukushima 2018-07-28 21:16:13 +09:00
parent 4141e2f4c2
commit ad813821fc
2 changed files with 2 additions and 2 deletions

2
package-lock.json generated
View File

@ -10342,7 +10342,7 @@
},
"onetime": {
"version": "1.1.0",
"resolved": "http://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
"resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
"integrity": "sha1-ofeDj4MUxRbwXs78vEzP4EtO14k=",
"dev": true
},

View File

@ -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')