terminal.open: support webcomponent in dom node check

This commit is contained in:
hantatsang
2021-01-31 11:43:59 +11:00
parent 4b29b8a9c6
commit a0903fbf9b
+1 -1
View File
@@ -386,7 +386,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
throw new Error('Terminal requires a parent element.');
}
if (!document.body.contains(parent)) {
if (!parent.isConnected) {
this._logService.debug('Terminal.open was called on an element that was not attached to the DOM');
}