Muqriz 48f16bfc3e initail first | il y a 4 mois | |
---|---|---|
.. | ||
.github/workflows | il y a 4 mois | |
node_modules | il y a 4 mois | |
test | il y a 4 mois | |
.eslintrc | il y a 4 mois | |
.jsfmtrc | il y a 4 mois | |
.travis.yml | il y a 4 mois | |
LICENSE | il y a 4 mois | |
README.md | il y a 4 mois | |
appveyor.yml | il y a 4 mois | |
index.js | il y a 4 mois | |
package.json | il y a 4 mois |
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