Add ipc.sendSync in renderer.
This commit is contained in:
parent
8f0b2b6363
commit
1b87a31940
10 changed files with 132 additions and 4 deletions
|
@ -9,6 +9,10 @@ ipc.on('message', function(process_id, routing_id) {
|
|||
ipc.send.apply(ipc, arguments);
|
||||
});
|
||||
|
||||
ipc.on('sync-message', function(event, process_id, routing_id) {
|
||||
event.result = arguments;
|
||||
});
|
||||
|
||||
atom.browserMainParts.preMainMessageLoopRun = function() {
|
||||
mainWindow = new Window({ width: 800, height: 600 });
|
||||
mainWindow.url = 'file://' + __dirname + '/index.html';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue