listen on event

pull/5370/head
yann300 4 years ago
parent 09a76ece5c
commit 3002dd3831
  1. 5
      apps/remix-ide/src/app/panels/terminal.js

@ -104,6 +104,10 @@ class Terminal extends Plugin {
this.on('scriptRunner', 'error', (msg) => {
this.commands.error.apply(this.commands, msg.data)
})
this.on('git', 'log', (result) => {
this.commands.html.apply(this.commands, yo`<pre>${result}</pre>`)
})
}
onDeactivation () {
@ -111,6 +115,7 @@ class Terminal extends Plugin {
this.off('scriptRunner', 'info')
this.off('scriptRunner', 'warn')
this.off('scriptRunner', 'error')
this.off('git', 'log')
}
logHtml (html) {

Loading…
Cancel
Save