mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-24 06:08:48 +00:00
only reply to compile action
This commit is contained in:
parent
e96842f9da
commit
6e37c2d91b
@ -54,9 +54,13 @@ class SolcW {
|
||||
ipc.server.on(
|
||||
'message',
|
||||
function(data, socket) {
|
||||
self.compile(data.message, (result) => {
|
||||
ipc.server.emit(socket, 'message', {action: 'compilation', message: result});
|
||||
});
|
||||
if (data.action != 'compile') {
|
||||
return;
|
||||
}
|
||||
|
||||
self.compile(data.message, (result) => {
|
||||
ipc.server.emit(socket, 'message', {action: 'compilation', message: result});
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user