diff --git a/docs/getting-started/your-first-neutralinojs-app.mdx b/docs/getting-started/your-first-neutralinojs-app.mdx index 78d92f82..d143516a 100644 --- a/docs/getting-started/your-first-neutralinojs-app.mdx +++ b/docs/getting-started/your-first-neutralinojs-app.mdx @@ -131,6 +131,9 @@ Insert the following content into your application resource files. } Neutralino.init(); + Neutralino.events.on("windowClose", () => { + Neutralino.app.exit(); + }); getUsername(); ```