title: Electron menu not showing
body: <p>Following an electron tutorial and can't get the menus to show up on OS X. Checked that the menu object gets populated with menu items, they just don't appear either in the window or at the top of the screen. Html file loads just fine.</p>
  
  <p>The only menu I see is the (default) app menu that reads Electron, but it has no content when clicked, not even empty lines - just nothing happens on click.</p>
  
  <pre><code>const { app, BrowserWindow, Menu } = require("electron");
  const url = require("url");
  const path = require("path");
  
  const mainWindowUrl = url.format({
      pathname: path.join(__dirname, "html", "main.html"),
      protocol: "file:",
      slashes: true,
  });
  
  const menuTemplate = [
      {
          label: "File",
      },
      {
          label: "Menu1",
      },
      {
          label: "Menu2",
      },
  ];
  
  const onAppReady = () =&gt; {
      const mainWindow = new BrowserWindow({});
      mainWindow.loadURL(mainWindowUrl);
  
      const menu = Menu.buildFromTemplate(menuTemplate);
      Menu.setApplicationMenu(menu);
  };
  
  app.on("ready", onAppReady);
  </code></pre>