title: Closing an electron window when a button is clicked?
body: <p>I've been trying to figure this out for a while and I understand that I need to use BrowserWindow.close(), but I don't understand how to do that outside of main.js.</p>
  
  <p>Any help would be appreciated.</p>