From ad813821fc771a3c854f7a0cd92863eb09b11c5d Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sat, 28 Jul 2018 21:16:13 +0900
Subject: [PATCH] refs #452 Fix splash file path in production
---
package-lock.json | 2 +-
src/main/index.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 4f4df6a9cd..b0a16920f9 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -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
},
diff --git a/src/main/index.js b/src/main/index.js
index a313324749..6d72373f2f 100644
--- a/src/main/index.js
+++ b/src/main/index.js
@@ -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')