Use onResize in demo

This commit is contained in:
Daniel Imms
2019-04-04 00:25:03 -04:00
parent 3f9d90ecf6
commit 629238ae70
+1 -1
View File
@@ -86,7 +86,7 @@ function createTerminal(): void {
windowsMode: isWindows
} as ITerminalOptions);
window.term = term; // Expose `term` to window for debugging purposes
term.on('resize', (size: { cols: number, rows: number }) => {
term.onResize((size: { cols: number, rows: number }) => {
if (!pid) {
return;
}