I'm using Electron
(formerly atom-shell) and would like to have a minimalist frame window so that the three OSX window buttons (close, maximize, minimize) are visible from within the HTML page.
I set the Electron option frame
to false
when defining the BrowserWindow
to have a chromeless, frameless window.
And I thought I could handle the close button with something like this:
<a btn href=# id=close onclick=window.top.close(); return false></a>
With no luck, sadly. Any idea how to achieve this?