File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export class CoreBrowserService extends Disposable implements ICoreBrowserServic
1313
1414 private _isFocused = false ;
1515 private _cachedIsFocused : boolean | undefined = undefined ;
16- private _screenDprMonitor = this . _register ( new ScreenDprMonitor ( this . _window ) ) ;
16+ private _screenDprMonitor : ScreenDprMonitor ;
1717
1818 private readonly _onDprChange = this . _register ( new Emitter < number > ( ) ) ;
1919 public readonly onDprChange = this . _onDprChange . event ;
@@ -27,6 +27,8 @@ export class CoreBrowserService extends Disposable implements ICoreBrowserServic
2727 ) {
2828 super ( ) ;
2929
30+ this . _screenDprMonitor = this . _register ( new ScreenDprMonitor ( this . _window ) ) ;
31+
3032 // Monitor device pixel ratio
3133 this . _register ( this . onWindowChange ( w => this . _screenDprMonitor . setWindow ( w ) ) ) ;
3234 this . _register ( EventUtils . forward ( this . _screenDprMonitor . onDprChange , this . _onDprChange ) ) ;
Original file line number Diff line number Diff line change 99 "pretty" : true ,
1010
1111 "incremental" : true ,
12- "experimentalDecorators" : true ,
13- "useDefineForClassFields" : false
12+ "experimentalDecorators" : true
1413 }
1514}
You can’t perform that action at this time.
0 commit comments