A main menu is a hallmark of native desktop applications. Electron makes it easy to create native menus and menu items in JavaScript.
We’ll go over creating a menu template using Menu.buildFromTemplate
and then setting it as the main application menu via Menu.setApplicationMenu
.
On Win32, with Electron 1.6.11, a default native menu is added to the app based on the example template in the docs:
https://electron.atom.io/docs/api/menu/#examples
This is some crazy new stuff that i got to learn today!! Thanks Egghead!
Could the process.platform be 'win64' on Windows 64bit systems?
just to be clear it seems like you are using main.js and index.js interchangeably, is that the case?? Thank for a clear and concise course otherwise so far
I have an error 'ReferenceError : isWindows is not defined
---- never mind got, minor problem with my code