Skip to content

Commit

Permalink
Fixes for MacOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
Roddy Pratt authored and Roddy Pratt committed Nov 26, 2019
1 parent 7a296a4 commit f0a1de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
},
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function createWindow() {

// and load the index.html of the app.
//mainWindow.loadFile('../index.html')
const startUrl = path.resolve(path.join(__dirname,'../index.html'));
const startUrl = 'file://' + path.resolve(path.join(__dirname,'../index.html'));
mainWindow.loadURL(startUrl);
// Open the DevTools.
// mainWindow.webContents.openDevTools()
Expand Down

0 comments on commit f0a1de3

Please sign in to comment.