Fix comment in version fetcher to clarify source as Gitea releases API
All checks were successful
Deploy to Production / deploy (push) Successful in 5s

This commit is contained in:
Илья Глазунов 2025-12-07 23:04:10 +03:00
parent 898c7b6a7a
commit 769a5e0a43

View File

@ -1,6 +1,6 @@
/**
* Version Fetcher - Automatically fetches and displays latest pyserveX version
* from Gitea releases page
* from Gitea releases API.
*/
(function() {
@ -8,7 +8,7 @@
const API_URL = 'https://git.pyserve.org/api/v1/repos/Shifty/pyserveX/releases/latest';
const VERSION_ELEMENT_ID = 'current-version';
const CACHE_KEY = 'pyserve_version_cache';
const CACHE_DURATION = 3600000; // 1 hour
const CACHE_DURATION = 3600000;
const FALLBACK_VERSION = '0.9.10';
async function fetchLatestVersion() {