var app = require('app');
var BrowserWindow = require('browser-window');

var mainWindow = null;
app.on('window-all-closed', function() {
  if (process.platform != 'darwin') {
    app.quit();
  }
});

app.on('ready', function() {
  mainWindow = new BrowserWindow({width: 1366, height: 768});
  mainWindow.loadUrl('https://www.irccloud.com');

  mainWindow.on('closed', function() {
    mainWindow = null;
  });
});

@@ -65,16 +65,81 @@
 indow');
+%0Avar Menu = require('menu');%0Avar MenuItem = require('menu-item');
 %0A%0Avar ma
@@ -468,13 +468,2187 @@
 l;%0A  %7D);
+%0A%0A  // Create the Application's main menu%0A  var template = %5B%7B%0A    label: 'IRCCloud',%0A    submenu: %5B%0A      %7B%0A        label: 'Hide IRCCloud',%0A        accelerator: 'Command+H',%0A        selector: 'hide:'%0A      %7D,%0A      %7B%0A        label: 'Hide Others',%0A        accelerator: 'Command+Shift+H',%0A        selector: 'hideOtherApplications:'%0A      %7D,%0A      %7B%0A        label: 'Show All',%0A        selector: 'unhideAllApplications:'%0A      %7D,%0A      %7B%0A        type: 'separator'%0A      %7D,%0A      %7B%0A        label: 'Quit',%0A        accelerator: 'Command+Q',%0A        click: function() %7B app.quit(); %7D%0A      %7D,%0A    %5D%0A  %7D,%0A  %7B%0A    label: 'Edit',%0A    submenu: %5B%0A      %7B%0A        label: 'Undo',%0A        accelerator: 'Command+Z',%0A        selector: 'undo:'%0A      %7D,%0A      %7B%0A        label: 'Redo',%0A        accelerator: 'Shift+Command+Z',%0A        selector: 'redo:'%0A      %7D,%0A      %7B%0A        type: 'separator'%0A      %7D,%0A      %7B%0A        label: 'Cut',%0A        accelerator: 'Command+X',%0A        selector: 'cut:'%0A      %7D,%0A      %7B%0A        label: 'Copy',%0A        accelerator: 'Command+C',%0A        selector: 'copy:'%0A      %7D,%0A      %7B%0A        label: 'Paste',%0A        accelerator: 'Command+V',%0A        selector: 'paste:'%0A      %7D,%0A      %7B%0A        label: 'Select All',%0A        accelerator: 'Command+A',%0A        selector: 'selectAll:'%0A      %7D,%0A    %5D%0A  %7D,%0A  %7B%0A    label: 'View',%0A    submenu: %5B%0A      %7B%0A        label: 'Reload',%0A        accelerator: 'Command+R',%0A        click: function() %7B BrowserWindow.getFocusedWindow().reloadIgnoringCache(); %7D%0A      %7D,%0A      %7B%0A        label: 'Toggle DevTools',%0A        accelerator: 'Alt+Command+I',%0A        click: function() %7B BrowserWindow.getFocusedWindow().toggleDevTools(); %7D%0A      %7D,%0A    %5D%0A  %7D,%0A  %7B%0A    label: 'Window',%0A    submenu: %5B%0A      %7B%0A        label: 'Minimize',%0A        accelerator: 'Command+M',%0A        selector: 'performMiniaturize:'%0A      %7D,%0A      %7B%0A        label: 'Close',%0A        accelerator: 'Command+W',%0A        selector: 'performClose:'%0A      %7D,%0A      %7B%0A        type: 'separator'%0A      %7D,%0A      %7B%0A        label: 'Bring All to Front',%0A        selector: 'arrangeInFront:'%0A      %7D,%0A    %5D%0A  %7D%5D;%0A%0A  menu = Menu.buildFromTemplate(template);%0A  Menu.setApplicationMenu(menu);
 %0A%7D);%0A

Add main menu, enables copy/paste