The Wayback Machine - https://web.archive.org/web/20211020192832/https://github.com/mongodb-js/electron-squirrel-startup
Skip to content
master
Switch branches/tags
Code

Latest commit

The usage example in the README results in a syntax error for Babel/ES6 users, as reported by @matthiaslau in #15:

`SyntaxError: 'return' outside of function.`
29221a0

Git stats

Files

Permalink
Failed to load latest commit information.

electron-squirrel-startup travis npm appveyor

Default Squirrel.Windows event handler for your Electron apps.

Installation

npm i electron-squirrel-startup

Usage

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();

Read More

Handling Squirrel Events

Squirrel.Windows Commands

License

Apache 2.0

About

Default Squirrel.Windows event handler for your Electron apps.

Resources

License

Packages

No packages published