From 84ed9e26cdeb7e02684f019ca7d07fef5286351e Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 22 Aug 2024 04:36:48 -0700
Subject: feat(settings): data saver

---
 src/lib/Media/Cover/HoverCover.svelte | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/lib/Media/Cover/HoverCover.svelte')

diff --git a/src/lib/Media/Cover/HoverCover.svelte b/src/lib/Media/Cover/HoverCover.svelte
index 873d6be1..eecbabe5 100644
--- a/src/lib/Media/Cover/HoverCover.svelte
+++ b/src/lib/Media/Cover/HoverCover.svelte
@@ -1,4 +1,5 @@
 <script lang="ts">
+	import settings from '$stores/settings';
 	import type { HoverCoverResponse } from './hoverCover';
 
 	export let options: HoverCoverResponse;
@@ -9,7 +10,9 @@
 	<img
 		class="hover-image show card card-small"
 		src={options.media
-			? options.media.coverImage.extraLarge
+			? $settings.displayDataSaver
+				? options.media.coverImage.medium
+				: options.media.coverImage.extraLarge
 			: `https://subsplease.org${options.item?.image_url}`}
 		alt="Media Cover"
 		loading="lazy"
-- 
cgit v1.2.3

