Closed dafinley closed 8 years ago
No worries, you're just calling it wrong:
const {remote} = requireNode('electron');
const {Menu} = remote;
Preciate it!!...and in case anybody else comes here that template object is an array of objects...
var m =[ {
label:'Menu',
submenu:[{label:'Dumbo Fish'}]
}];
Really nice library btw. I have this very simple code in a pods setup..and this particular file is in pods/components/ui/file-menu and I have had alot of problems getting any sort of Menu to appear. I can use the fs library but anytime I try to use the menu...the application dies. Any clues?