Skip to content

Commit

Permalink
Update squirrel.windows.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hichemfantar authored Nov 15, 2024
1 parent 2f23fda commit 4b9053b
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 4b9053b

Please sign in to comment.