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.
Usage Docs
if(require('electron-squirrel-startup')) app.quit();
Source Code
|
run(['--createShortcut=' + target + ''], app.quit); |
The usage documentation shows calling
app.quit()afterrequireingelectron-squirrel-startup, however, the code calls quit itself. This is misleading. If you run your own code on one of these flags afterrequireingelectron-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
electron-squirrel-startup/index.js
Line 21 in 29221a0