Handle onWillFire if it fails, so it loads dom renderer

This commit is contained in:
Simon Lamon
2022-10-09 15:01:15 +00:00
parent 627410a537
commit 1c345bef48
2 changed files with 4 additions and 4 deletions
+4 -1
View File
@@ -515,7 +515,10 @@ export class Terminal extends CoreTerminal implements ITerminal {
// Performance: Add viewport and helper elements from the fragment
this.element.appendChild(fragment);
this._onWillOpen.fire(this.element);
try {
this._onWillOpen.fire(this.element);
}
catch { /* fails to load addon for some reason */ }
if (!this._renderService.hasRenderer()) {
this._renderService.setRenderer(this._createRenderer());
}