From 31fcf3e18911f55acd43cfc28f3bde368f20a255 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Thu, 7 Dec 2023 03:15:28 -0800
Subject: feat(media): outbound links option

---
 src/lib/List/Manga/CleanMangaList.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/lib/List/Manga/CleanMangaList.svelte')

diff --git a/src/lib/List/Manga/CleanMangaList.svelte b/src/lib/List/Manga/CleanMangaList.svelte
index acea532a..8f36f244 100644
--- a/src/lib/List/Manga/CleanMangaList.svelte
+++ b/src/lib/List/Manga/CleanMangaList.svelte
@@ -1,6 +1,7 @@
 <script lang="ts">
 	import type { Media } from '$lib/AniList/media';
 	import { volumeCount } from '$lib/Media/manga';
+	import { outboundLink } from '$lib/Media/media';
 	import settings from '../../../stores/settings';
 	import ListTitle from '../ListTitle.svelte';
 	import MediaTitle from '../MediaTitleDisplay.svelte';
@@ -34,7 +35,7 @@
 
 		{#if progress !== manga.episodes}
 			<li>
-				<a href={`https://anilist.co/manga/${manga.id}`} target="_blank">
+				<a href={outboundLink(manga, 'manga', $settings.outboundLinksTo)} target="_blank">
 					<span
 						style={lastUpdatedMedia === manga.id && manga.chapters !== progress
 							? 'color: lightcoral'
-- 
cgit v1.2.3

