From 3eaf9a659b9651ee56fc75b61156484293fe18de Mon Sep 17 00:00:00 2001 From: oiupoyt Date: Sun, 13 Sep 2026 11:53:02 +0530 Subject: [PATCH] feat(frontend): set default permanent API to jd-api.oiupoyt.space --- frontend/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/index.html b/frontend/index.html index 169df3e..be257a7 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -930,7 +930,11 @@ requestAnimationFrame(animateParticles); // ── API Configuration ──────────────────────────────────────────────────── - const DEFAULT_REMOTE_API = 'https://YOUR_BACKEND_URL.trycloudflare.com'; + const DEFAULT_REMOTE_API = 'https://jd-api.oiupoyt.space'; + const savedApi = localStorage.getItem('justdownload_api'); + if (savedApi && (savedApi.includes('trycloudflare.com') || savedApi.includes('YOUR_BACKEND_URL'))) { + localStorage.removeItem('justdownload_api'); + } const urlParams = new URLSearchParams(window.location.search); if (urlParams.has('api')) { const customApi = urlParams.get('api').replace(/\/+$/, '');