diff --git a/templates/settings.html b/templates/settings.html index f2fafef..b665397 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -597,7 +597,7 @@ 🔄 {{ _('check_updates') }}
- + ⬇️ {{ _('download_update') }} @@ -1425,7 +1425,7 @@ downloadBtn.classList.add('hidden'); try { - const response = await fetch('https://api.github.com/repos/PRVTPRO/Amnezia-Web-Panel/releases/latest'); + const response = await fetch('https://git.evilfox.cc/api/v1/repos/test2/Amnezia-Web-Panel-main/releases/latest'); if (!response.ok) throw new Error('API Error'); const data = await response.json(); @@ -1437,7 +1437,7 @@ if (latestVersion !== currentVersion && latestVersion) { statusDiv.innerHTML = `{{ _('update_available')|default('Update available') }}: ${latestVersion}`; statusDiv.style.border = '1px solid var(--success)'; - downloadBtn.href = data.html_url; + downloadBtn.href = data.html_url || 'https://git.evilfox.cc/test2/Amnezia-Web-Panel-main/releases'; downloadBtn.classList.remove('hidden'); } else { statusDiv.innerHTML = `{{ _('up_to_date')|default('Up to date') }}`;