The usage documentation shows calling app.quit() after requireing electron-squirrel-startup, however, the code calls quit itself. This is misleading. If you run your own code on one of these flags after requireing electron-squirrel-startup, the app will quit from under you. The documentation should match the code. It would be nice to only optionally quit or not quit at all for flexibility.
The usage documentation shows calling
app.quit()
afterrequire
ingelectron-squirrel-startup
, however, the code calls quit itself. This is misleading. If you run your own code on one of these flags afterrequire
ingelectron-squirrel-startup
, the app will quit from under you. The documentation should match the code. It would be nice to only optionally quit or not quit at all for flexibility.Usage Docs
Source Code
https://github.com/mongodb-js/electron-squirrel-startup/blob/29221a02c38bc43655e5c67e189e2a25105753f6/index.js#L21