Update src/browser/ScreenDprMonitor.ts
Co-authored-by: Daniel Imms <tyriar@tyriar.com>
This commit is contained in:
@@ -49,9 +49,7 @@ export class ScreenDprMonitor extends Disposable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Clear listeners for old DPR
|
// Clear listeners for old DPR
|
||||||
if (this._resolutionMediaMatchList) {
|
this._resolutionMediaMatchList?.removeListener(this._outerListener);
|
||||||
this._resolutionMediaMatchList.removeListener(this._outerListener);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add listeners for new DPR
|
// Add listeners for new DPR
|
||||||
this._currentDevicePixelRatio = window.devicePixelRatio;
|
this._currentDevicePixelRatio = window.devicePixelRatio;
|
||||||
|
|||||||
Reference in New Issue
Block a user