diff options
| author | Fuwn <[email protected]> | 2026-03-01 16:20:51 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-01 16:21:02 -0800 |
| commit | eae5d24d9e79e59a19d4721caaeaa0ca650ecb33 (patch) | |
| tree | 1b685bb248e051dfa26d2bfdebe6689402dd93c5 /src/lib/Utility/proxy.ts | |
| parent | chore(tooling): remove legacy eslint and prettier (diff) | |
| download | due.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.tar.xz due.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.zip | |
chore(biome): drop formatter style overrides
Diffstat (limited to 'src/lib/Utility/proxy.ts')
| -rw-r--r-- | src/lib/Utility/proxy.ts | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/Utility/proxy.ts b/src/lib/Utility/proxy.ts index 4c7cbb90..c6577ac0 100644 --- a/src/lib/Utility/proxy.ts +++ b/src/lib/Utility/proxy.ts @@ -1,16 +1,16 @@ -import { env } from '$env/dynamic/public'; +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; |