Revert "Merge pull request #5253 from akphi/patch-1"

This reverts commit 601efc3745, reversing
changes made to af4208dad0.
This commit is contained in:
Daniel Imms
2025-02-14 06:35:24 -08:00
parent a7a941ce78
commit 18cd9b137f
+1 -1
View File
@@ -400,7 +400,7 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
}
// If the terminal is already opened
if (this.element?.ownerDocument.defaultView && this._coreBrowserService && this.element?.isConnected) {
if (this.element?.ownerDocument.defaultView && this._coreBrowserService) {
// Adjust the window if needed
if (this.element.ownerDocument.defaultView !== this._coreBrowserService.window) {
this._coreBrowserService.window = this.element.ownerDocument.defaultView;