   mainWindow = new BrowserWindow width: 800, height: 600, show: false
 
   # Don't use a menu bar.
-  Menu.setApplicationMenu Menu.buildFromTemplate emptyMenuTemplate()
+  Menu.setApplicationMenu noMenu()
 
   url = "file://#{__dirname}/index.html"
 

          }
          {
            label: 'Toggle DevTools'
            accelerator: 'Option+Cmd+I'
            click: -> mainWindow.toggleDevTools()
          }
        ]
      }
    ]
  else
    [
      {
        label: 'Relief Valve'
        submenu: [

# be closed automatically when the javascript object is GCed.
mainWindow = null

noMenu = ->
  if process.platform is 'darwin'
    Menu.buildFromTemplate [
      {
        label: 'Relief Valve'
        submenu: [
          {
            label: 'About Relief Valve'
            selector: 'orderFrontStandardAboutPanel:'
          }
        ]
      }
    ]
  else
    null

fullMenu = ->
  if process.platform is 'darwin'
    Menu.buildFromTemplate [
      {
        label: 'Relief Valve'
        submenu: [
