terminal.open: support webcomponent in dom node check
This commit is contained in:
@@ -386,7 +386,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
|
|||||||
throw new Error('Terminal requires a parent element.');
|
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');
|
this._logService.debug('Terminal.open was called on an element that was not attached to the DOM');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user