From 998b63a35256ac985a5a2714dd1ca451af4dfd8a Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 9 Oct 2024 00:41:20 -0700 Subject: chore(prettier): use spaces instead of tabs --- src/lib/Utility/proxy.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/lib/Utility/proxy.ts') diff --git a/src/lib/Utility/proxy.ts b/src/lib/Utility/proxy.ts index 7838f3cb..4c7cbb90 100644 --- a/src/lib/Utility/proxy.ts +++ b/src/lib/Utility/proxy.ts @@ -1,16 +1,16 @@ import { env } from '$env/dynamic/public'; export const proxy = (url: string, disable = false) => { - const randomKey = Math.floor(Math.random() * 90) + 10; + const randomKey = Math.floor(Math.random() * 90) + 10; - return env.PUBLIC_ANILIST_REDIRECT_URI?.includes('localhost') && !disable - ? url - : `https://proxy.due.moe/?d2=${btoa( - url - .split('') - .map((char) => char.charCodeAt(0) + randomKey) - .join(':') - )}${randomKey}&dh`; + return env.PUBLIC_ANILIST_REDIRECT_URI?.includes('localhost') && !disable + ? url + : `https://proxy.due.moe/?d2=${btoa( + url + .split('') + .map((char) => char.charCodeAt(0) + randomKey) + .join(':') + )}${randomKey}&dh`; }; export default proxy; -- cgit v1.2.3