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