Changes of Linux development v0.0.69

This commit is contained in:
root 2019-08-30 22:00:24 +02:00
parent 3dbfd2fda2
commit 8f349e0a2d

View file

@ -36,12 +36,10 @@ const ipcEmitter = new events_1.EventEmitter();
const ipcInternalEmitter = new events_1.EventEmitter();
v8Util.setHiddenValue(global, 'ipc', ipcEmitter);
v8Util.setHiddenValue(global, 'ipc-internal', ipcInternalEmitter);
const savedProcess = process;
v8Util.setHiddenValue(global, 'ipcNative', {
onMessage(internal, channel, args, senderId) {
const sender = internal ? ipcInternalEmitter : ipcEmitter;
sender.emit(channel, { sender, senderId }, ...args);
savedProcess.activateUvLoop();
}
});
// Use electron module after everything is ready.