MCPcopy Index your code
hub / github.com/codeaashu/claude-code / _updateDpr

Method _updateDpr

src/server/web/public/terminal.js:1844–1847  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1842 this._parentWindow.devicePixelRatio !== this._currentDevicePixelRatio && this._onDprChange.fire(this._parentWindow.devicePixelRatio), this._updateDpr();
1843 }
1844 _updateDpr() {
1845 var _a2;
1846 this._outerListener && ((_a2 = this._resolutionMediaMatchList) == null ? void 0 : _a2.removeListener(this._outerListener), this._currentDevicePixelRatio = this._parentWindow.devicePixelRatio, this._resolutionMediaMatchList = this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`), this._resolutionMediaMatchList.addListener(this._outerListener));
1847 }
1848 clearListener() {
1849 this._resolutionMediaMatchList && this._outerListener && (this._resolutionMediaMatchList.removeListener(this._outerListener), this._resolutionMediaMatchList = void 0, this._outerListener = void 0);
1850 }

Callers 2

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected