@xterm/xterm 6.1.0-beta.162 → 6.1.0-beta.163

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": "6.1.0-beta.162",
4
+ "version": "6.1.0-beta.163",
5
5
  "main": "lib/xterm.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "style": "css/xterm.css",
@@ -119,5 +119,5 @@
119
119
  "ws": "^8.2.3",
120
120
  "xterm-benchmark": "^0.3.1"
121
121
  },
122
- "commit": "83401e37692c31110c66faf185c569b7f467a9c5"
122
+ "commit": "0d119b30d625f225ed3dbc5f0d45136e7245de19"
123
123
  }
@@ -13,7 +13,7 @@ export class CoreBrowserService extends Disposable implements ICoreBrowserServic
13
13
 
14
14
  private _isFocused = false;
15
15
  private _cachedIsFocused: boolean | undefined = undefined;
16
- private _screenDprMonitor = this._register(new ScreenDprMonitor(this._window));
16
+ private _screenDprMonitor: ScreenDprMonitor;
17
17
 
18
18
  private readonly _onDprChange = this._register(new Emitter<number>());
19
19
  public readonly onDprChange = this._onDprChange.event;
@@ -27,6 +27,8 @@ export class CoreBrowserService extends Disposable implements ICoreBrowserServic
27
27
  ) {
28
28
  super();
29
29
 
30
+ this._screenDprMonitor = this._register(new ScreenDprMonitor(this._window));
31
+
30
32
  // Monitor device pixel ratio
31
33
  this._register(this.onWindowChange(w => this._screenDprMonitor.setWindow(w)));
32
34
  this._register(EventUtils.forward(this._screenDprMonitor.onDprChange, this._onDprChange));
@@ -6,4 +6,4 @@
6
6
  /**
7
7
  * The xterm.js version. This is updated by the publish script from package.json.
8
8
  */
9
- export const XTERM_VERSION = '6.1.0-beta.162';
9
+ export const XTERM_VERSION = '6.1.0-beta.163';