Fix demo again

This commit is contained in:
Simon Lamon
2022-10-09 11:29:33 +00:00
parent 0ba12301a6
commit bd661fdb07
3 changed files with 16 additions and 7 deletions
+3 -1
View File
@@ -33,7 +33,9 @@ export class WebglAddon extends Disposable implements ITerminalAddon {
}
const core = (terminal as any)._core;
if (!terminal.element) {
this.register(core.onWillOpen(() => this.activate(terminal)));
this.register(toDisposable(() => {
core.onWillOpen(() => this.activate(terminal));
}));
return;
}
this._terminal = terminal;