Merge pull request #548 from garel/patch-1

TerminalDoc update
pull/599/head
Cagatay Civici 2020-10-22 15:40:19 +03:00 committed by GitHub
commit e6c2d774e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -176,14 +176,14 @@ export default {
response = "Unknown command: " + command;
}
TerminalService.$emit('response', response);
TerminalService.emit('response', response);
}
},
mounted() {
TerminalService.$on('command', this.commandHandler);
TerminalService.on('command', this.commandHandler);
},
beforeUnmount() {
TerminalService.$off('command', this.commandHandler);
TerminalService.off('command', this.commandHandler);
}
}