From 4b9053b380f85bd0ad000ab36f5f69ec984f641f Mon Sep 17 00:00:00 2001
From: Hichem Fantar <fantar.hichem@gmail.com>
Date: Fri, 15 Nov 2024 22:07:10 +0100
Subject: [PATCH] Update squirrel.windows.md

---
 config/makers/squirrel.windows.md | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/config/makers/squirrel.windows.md b/config/makers/squirrel.windows.md
index 2d9f224..72fe471 100644
--- a/config/makers/squirrel.windows.md
+++ b/config/makers/squirrel.windows.md
@@ -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 %}