Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit cc3571c

Browse files
committed
fix removed pixelRatio
1 parent 915f8b3 commit cc3571c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/messages/MImageBody.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export default class MImageBody extends React.Component {
217217
const info = content.info;
218218
if (
219219
this._isGif() ||
220-
pixelRatio === 1.0 ||
220+
window.devicePixelRatio === 1.0 ||
221221
(!info || !info.w || !info.h || !info.size)
222222
) {
223223
return media.getThumbnailOfSourceHttp(thumbWidth, thumbHeight);

0 commit comments

Comments
 (0)