0

I want to send an api request when the user closes the app. I have managed to send an api request on that but on shutdown the request is not sent. Is there any way in electron that we can prevent system shutdown like in the image. Prevent system shutdown

There is "shutdown" event in electron but it works on mac and linux only.

0