[Originally posted Mar. 27, 2020 to “support” - did not receive any replies so cross-posting to electron. Apologies.]
I notice that when app.quit() is called after the window is closed an electron process is left behind (i.e. still running in the background) even though the application window has closed. I have determined that the service worker is responsible for the process: If I comment out the service worker so that it is not registered when the page loads, and then quit the application, no process is left behind.
Is the left-behind process to be expected? Or is it a bug in electron? If the former, does that mean it is the developer’s responsibility to unregister service workers on exit? And if so, doesn’t that preclude offline access?