From 45c221a3b26e26708bf636d8609037f1fea20673 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 24 Apr 2019 21:00:15 -0700 Subject: [PATCH] Fixed: Ensure max sized posters aren't returned for some devices --- frontend/src/Series/SeriesImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Series/SeriesImage.js b/frontend/src/Series/SeriesImage.js index 672f92678..069bcb600 100644 --- a/frontend/src/Series/SeriesImage.js +++ b/frontend/src/Series/SeriesImage.js @@ -24,7 +24,7 @@ class SeriesImage extends Component { constructor(props, context) { super(props, context); - const pixelRatio = Math.floor(window.devicePixelRatio); + const pixelRatio = Math.max(Math.round(window.devicePixelRatio), 1); const { images,