From 98e63ad42486ff4ba483eec0af8e7a683542ad69 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 31 Aug 2018 18:55:38 +0100 Subject: [PATCH] Fix message events already declared --- lib/modules/console/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/console/index.js b/lib/modules/console/index.js index 97fa303ba..208b389a8 100644 --- a/lib/modules/console/index.js +++ b/lib/modules/console/index.js @@ -77,7 +77,7 @@ class Console { this.events.emit('runcode:register', 'Web3', Web3, false); this.events.emit('runcode:register', 'EmbarkJS', EmbarkJS, false); - this.events.on('code-generator-ready', () => { + this.events.once('code-generator-ready', () => { if (this.ipc.connected) { return; }