I need an electron event handler that detects a force quit/end task from task manager in windows. I would like this event handler to be able to send an http request before ending the program. I am currently using:
app.on('before-quit', function () {
//send http request...
})
to handle the force quit event. While this handler works with force quit in mac environment, it does not get fired in windows using the task manager.