mirror of
https://github.com/yudai/gotty.git
synced 2025-12-17 08:00:13 +01:00
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.
This commit is contained in:
parent
9ac120a557
commit
b4728f6aa4
1 changed files with 3 additions and 3 deletions
|
|
@ -75,9 +75,9 @@ export class Hterm {
|
||||||
};
|
};
|
||||||
|
|
||||||
deactivate(): void {
|
deactivate(): void {
|
||||||
this.io.onVTKeystroke = null;
|
this.io.onVTKeystroke = function(){};
|
||||||
this.io.sendString = null
|
this.io.sendString = function(){};
|
||||||
this.io.onTerminalResize = null;
|
this.io.onTerminalResize = function(){};
|
||||||
this.term.uninstallKeyboard();
|
this.term.uninstallKeyboard();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue