Skip to content

Commit

Permalink
Merge pull request #179 from badoo/hterm_deactivate_fix_pull
Browse files Browse the repository at this point in the history
Stop hterm spamming with errors to console after deactivate()
  • Loading branch information
yudai authored Nov 25, 2017
2 parents 9ac120a + b4728f6 commit 8df0bf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/src/hterm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export class Hterm {
};

deactivate(): void {
this.io.onVTKeystroke = null;
this.io.sendString = null
this.io.onTerminalResize = null;
this.io.onVTKeystroke = function(){};
this.io.sendString = function(){};
this.io.onTerminalResize = function(){};
this.term.uninstallKeyboard();
}

Expand Down

0 comments on commit 8df0bf4

Please sign in to comment.