From aef257cc7fe12c91c290efca0724a0264ffbc67d Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 6 Dec 2023 21:42:05 -0800
Subject: feat(proxy): proxy all content

---
 src/lib/Tools/Wrapped.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/lib/Tools/Wrapped.svelte')

diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index 1914e29b..3361ba5e 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -285,8 +285,8 @@
 	// 	return string.slice(0, maxLength - 3) + ' …';
 	// };
 
-	const proxy = (url: string) =>
-		env.PUBLIC_ANILIST_REDIRECT_URI.includes('192.168')
+	const proxy = (url: string, disable = false) =>
+		env.PUBLIC_ANILIST_REDIRECT_URI.includes('192.168') && !disable
 			? url
 			: `/api/proxy?url=${encodeURIComponent(url)}`;
 </script>
-- 
cgit v1.2.3

