I am running an express app via electron.
Below is the main.js
const electron = require(\"electron\"), app = electron.app, Bro
you can use
const remote = require('electron').remote let w = remote.getCurrentWindow() w.close()
to close your app.
if you are using jQuery
const remote = require('electron').remote $('#close-btn').on('click', e => { remote.getCurrentWindow().close() })
if you are using Vue.js
Close application