You should be able to do that using window.close() For Electron, I think you have a couple of options. I think you can listen to the close event and quit the app then. You can also quit or exit directly.[1]
HTH, Harbs [1] https://www.electronjs.org/docs/api/app > On Jul 28, 2020, at 2:01 AM, Hugo Ferreira <hferreira...@gmail.com> wrote: > > I can close my Desktop Flex application with this simple instruction: > NativeApplication.nativeApplication.exit() > > I would like to replicate the same with Royale: In a browser context should > close the browser Tab and in a Desktop/Electron should close the window. > This is possible ?