Muqriz 48f16bfc3e initail first | 4 meses atrás | |
---|---|---|
.. | ||
.github/workflows | 4 meses atrás | |
node_modules | 4 meses atrás | |
test | 4 meses atrás | |
.eslintrc | 4 meses atrás | |
.jsfmtrc | 4 meses atrás | |
.travis.yml | 4 meses atrás | |
LICENSE | 4 meses atrás | |
README.md | 4 meses atrás | |
appveyor.yml | 4 meses atrás | |
index.js | 4 meses atrás | |
package.json | 4 meses atrás |
Default Squirrel.Windows event handler for your Electron apps.
npm i electron-squirrel-startup
To handle the most common commands, such as managing desktop shortcuts, just
add the following to the top of your main.js
and you’re good to go:
if(require('electron-squirrel-startup')) return;
For Babel/ES6:
const { app } = require('electron');
// ....
if(require('electron-squirrel-startup')) app.quit();
Apache 2.0