Fix message events already declared

This commit is contained in:
Anthony Laibe 2018-08-31 18:55:38 +01:00
parent 43945f6a49
commit 98e63ad424
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}