Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions config/makers/squirrel.windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,11 @@ The easiest way to handle these arguments and stop your app launching multiple t

{% code title="main.js" %}
```javascript
const { app } = require('electron');
import { app } from 'electron';
import started from 'electron-squirrel-startup';

// run this as early in the main process as possible
if (require('electron-squirrel-startup')) app.quit();
if (started) app.quit();
```
{% endcode %}

Expand Down