Skip to content

Commit

Permalink
Fix entry-path for the new windows for Carlo
Browse files Browse the repository at this point in the history
  • Loading branch information
roosmaa committed Jan 2, 2019
1 parent aa235d6 commit d2ea9c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,16 @@ async function run() {
// New window is opened in the running instance.
return;
}
const entryPoint = '/index.html';

app.on('exit', () => process.exit());

// New windows are opened when this app is started again from command line.
app.on('window', window => window.load('/'));
app.on('window', window => window.load(entryPoint));

// app.serveOrigin('https://localhost:3000');
app.serveFolder(path.join(__dirname, '..', 'build'));
await app.load('/index.html');
await app.load(entryPoint);

return app;
}
Expand Down

0 comments on commit d2ea9c3

Please sign in to comment.