Move ipc handler to be near others

This commit is contained in:
Kevin Sawicki 2015-12-07 09:47:15 -08:00
parent a139a62ebf
commit e62092ebb2

View file

@ -43,6 +43,12 @@ ipcMain.on('echo', function(event, msg) {
event.returnValue = msg;
});
// Verify Menu.buildFromTemplate does not modify the specified template
ipcMain.on('menu-build-from-template', function(event, template) {
Menu.buildFromTemplate(template);
event.returnValue = template;
})
if (process.argv[2] == '--ci') {
process.removeAllListeners('uncaughtException');
process.on('uncaughtException', function(error) {
@ -101,10 +107,4 @@ app.on('ready', function() {
});
event.returnValue = "done";
});
// Verify Menu.buildFromTemplate does not modify the specified template
ipcMain.on('menu-build-from-template', function(event, template) {
Menu.buildFromTemplate(template);
event.returnValue = template;
})
});