Fix comment in version fetcher to clarify source as Gitea releases API
All checks were successful
Deploy to Production / deploy (push) Successful in 5s
All checks were successful
Deploy to Production / deploy (push) Successful in 5s
This commit is contained in:
parent
898c7b6a7a
commit
769a5e0a43
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user