electron-with-express: The server does not close after closing the application (win.close)

Hi, The server does not close when I exit the app with

const {BrowserWindow} = require('electron').remote

BrowserWindow.getFocusedWindow().close()

But it closes when I leave the application with the cross at the top right… How to solve this problem?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 15 (13 by maintainers)

Most upvoted comments

Yep thank you so much @VzqzAc for the pull request. I’ve merged it.

Sorry for talking about something not related, but this might be a good time to add an issue template with steps to reproduce and context to approach problems better.