Mark element and textarea APIs as | undefined

Didn't fix all the issues in Terminal.ts as they will be covered in layering
refactor

Fixes #2471
This commit is contained in:
Daniel Imms
2019-10-15 16:29:13 -07:00
parent e14b1f75fe
commit cfe8022867
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export class FitAddon implements ITerminalAddon {
return undefined;
}
if (!this._terminal.element.parentElement) {
if (!this._terminal.element || !this._terminal.element.parentElement) {
return undefined;
}