diff options
Diffstat (limited to 'src/lib/Tools')
| -rw-r--r-- | src/lib/Tools/Wrapped.svelte | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte index 239e4c7a..e454f194 100644 --- a/src/lib/Tools/Wrapped.svelte +++ b/src/lib/Tools/Wrapped.svelte @@ -16,6 +16,7 @@ import { browser } from '$app/environment'; import { page } from '$app/stores'; import { clearAllParameters } from './tool.js'; + import { env } from '$env/dynamic/public'; export let user: AniListAuthorisation; @@ -283,7 +284,10 @@ // return string.slice(0, maxLength - 3) + ' …'; // }; - const proxy = (url: string) => `/api/proxy?url=${encodeURIComponent(url)}`; + const proxy = (url: string) => + env.PUBLIC_ANILIST_REDIRECT_URI.includes('192.168') + ? url + : `/api/proxy?url=${encodeURIComponent(url)}`; </script> {#if currentUserIdentity.id === -2} |