Move ipc handler to be near others
This commit is contained in:
parent
a139a62ebf
commit
e62092ebb2
1 changed files with 6 additions and 6 deletions
|
@ -43,6 +43,12 @@ ipcMain.on('echo', function(event, msg) {
|
||||||
event.returnValue = 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') {
|
if (process.argv[2] == '--ci') {
|
||||||
process.removeAllListeners('uncaughtException');
|
process.removeAllListeners('uncaughtException');
|
||||||
process.on('uncaughtException', function(error) {
|
process.on('uncaughtException', function(error) {
|
||||||
|
@ -101,10 +107,4 @@ app.on('ready', function() {
|
||||||
});
|
});
|
||||||
event.returnValue = "done";
|
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;
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue