Commit b4728f6a by Korenevskiy Denis

set deactivated terminal handlers to empty functions instead of null

this allows to avoid console spamming with 'not a function' messages
after the connection to server was closed.
1 parent 9ac120a5
Showing with 3 additions and 3 deletions
......@@ -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();
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!