Use require('ipc').send to communicate between browser and renderer.
This commit is contained in:
parent
c22d927b6f
commit
16244e42e0
19 changed files with 329 additions and 67 deletions
|
@ -1,10 +1,12 @@
|
|||
var atom = require('atom');
|
||||
var ipc = require('ipc');
|
||||
var Window = require('window');
|
||||
|
||||
var mainWindow = null;
|
||||
|
||||
process.on('message', function() {
|
||||
console.log.apply(this, arguments);
|
||||
ipc.on('message', function(process_id, routing_id) {
|
||||
console.log('message from', process_id, routing_id);
|
||||
ipc.send.apply(ipc, arguments);
|
||||
});
|
||||
|
||||
atom.browserMainParts.preMainMessageLoopRun = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue