diff --git a/.vscode/launch.json b/.vscode/launch.json index 4921a03..f6fad70 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,6 +9,7 @@ "type": "node", "request": "launch", "cwd": "${workspaceFolder}", + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron", "windows": { "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd" }, diff --git a/src/main.ts b/src/main.ts index ccd9fb1..b2eac7e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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()