diff options
| author | Fuwn <[email protected]> | 2024-01-22 18:56:41 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-01-22 18:56:41 -0800 |
| commit | e73a01cb0359f1bea5297c3fa99ffa21e3ad1a08 (patch) | |
| tree | 3e24448591c3f40e63655efc8b6989b05f07822a /src/lib/Utility | |
| parent | refactor(cdn): simplify (diff) | |
| download | due.moe-e73a01cb0359f1bea5297c3fa99ffa21e3ad1a08.tar.xz due.moe-e73a01cb0359f1bea5297c3fa99ffa21e3ad1a08.zip | |
fix(proxy): better disable flag
Diffstat (limited to 'src/lib/Utility')
| -rw-r--r-- | src/lib/Utility/proxy.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Utility/proxy.ts b/src/lib/Utility/proxy.ts index 3337fe29..11c87db8 100644 --- a/src/lib/Utility/proxy.ts +++ b/src/lib/Utility/proxy.ts @@ -1,7 +1,7 @@ import { env } from '$env/dynamic/public'; -export const proxy = (url: string, enable = false) => - env.PUBLIC_ANILIST_REDIRECT_URI?.includes('localhost') || enable +export const proxy = (url: string, disable = false) => + env.PUBLIC_ANILIST_REDIRECT_URI?.includes('localhost') || disable ? url : `https://proxy.due.moe/?q=${url}`; |