File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ Your built files are in the /dist folder.
75
75
76
76
| Command| Description|
77
77
| --| --|
78
- | ` npm run start:web ` | Execute the app in the brower |
78
+ | ` npm run start:web ` | Execute the app in the browser |
79
79
| ` npm run electron:linux ` | Builds your application and creates an app consumable on linux system |
80
80
| ` npm run electron:windows ` | On a Windows OS, builds your application and creates an app consumable in windows 32/64 bit systems |
81
81
| ` npm run electron:mac ` | On a MAC OS, builds your application and generates a ` .app ` file of your application that can be run on Mac |
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as path from 'path';
4
4
let win , serve ;
5
5
const args = process . argv . slice ( 1 ) ;
6
6
serve = args . some ( val => val === '--serve' ) ;
7
+ import * as url from 'url' ;
7
8
8
9
if ( serve ) {
9
10
require ( 'electron-reload' ) ( __dirname , {
@@ -24,7 +25,11 @@ function createWindow() {
24
25
} ) ;
25
26
26
27
// and load the index.html of the app.
27
- win . loadURL ( 'file://' + __dirname + '/index.html' ) ;
28
+ win . loadURL ( url . format ( {
29
+ protocol : 'file:' ,
30
+ pathname : path . join ( __dirname , '/index.html' ) ,
31
+ slashes : true
32
+ } ) ) ;
28
33
29
34
// Open the DevTools.
30
35
if ( serve ) {
You can’t perform that action at this time.
0 commit comments