From 932e9eec6febec12d951b927f3c746152338f734 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 7 Dec 2023 04:32:26 -0800 Subject: fix(earthly): environment variable types --- src/lib/Tools/Wrapped.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/Tools') diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte index 3361ba5e..6fbddd77 100644 --- a/src/lib/Tools/Wrapped.svelte +++ b/src/lib/Tools/Wrapped.svelte @@ -286,7 +286,7 @@ // }; const proxy = (url: string, disable = false) => - env.PUBLIC_ANILIST_REDIRECT_URI.includes('192.168') && !disable + env.PUBLIC_ANILIST_REDIRECT_URI?.includes('192.168') && !disable ? url : `/api/proxy?url=${encodeURIComponent(url)}`; -- cgit v1.2.3