electron-webapps / meteor-electron

Meteor Electron, the easiest way to create a desktop Meteor application
MIT License
326 stars 48 forks source link

Close the window programatically #95

Closed taliyahpottruff closed 8 years ago

taliyahpottruff commented 8 years ago

I can't find a way to close the window through code in the app.

If I'm missing something, it'd be awesome if someone could point it out.

taliyahpottruff commented 8 years ago

Solution: Using process.exit() does the trick.

Side-note: --once prevents the app from automatically relaunching.