@xterm/xterm 5.6.0-beta.76 → 5.6.0-beta.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xterm/xterm",
3
3
  "description": "Full xterm terminal, in your browser",
4
- "version": "5.6.0-beta.76",
4
+ "version": "5.6.0-beta.77",
5
5
  "main": "lib/xterm.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "style": "css/xterm.css",
@@ -107,5 +107,5 @@
107
107
  "ws": "^8.2.3",
108
108
  "xterm-benchmark": "^0.3.1"
109
109
  },
110
- "commit": "af4208dad0736f052e278d343201559335d4d85c"
110
+ "commit": "601efc3745c797ceaebe8707850fc071afafbd4e"
111
111
  }
@@ -400,7 +400,7 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
400
400
  }
401
401
 
402
402
  // If the terminal is already opened
403
- if (this.element?.ownerDocument.defaultView && this._coreBrowserService) {
403
+ if (this.element?.ownerDocument.defaultView && this._coreBrowserService && this.element?.isConnected) {
404
404
  // Adjust the window if needed
405
405
  if (this.element.ownerDocument.defaultView !== this._coreBrowserService.window) {
406
406
  this._coreBrowserService.window = this.element.ownerDocument.defaultView;