site: remove GitHub mirror button from git widget, keep only Gitea (languages fetch now Gitea-only)

This commit is contained in:
SashegDev
2026-09-01 06:40:20 +00:00
parent 5985887fb8
commit 75738ae127
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -731,8 +731,8 @@
};
try {
let data = null;
try { data = await tryFetch('https://api.github.com/repos/SashegDev/launcher/languages'); } catch(e) {
try { data = await tryFetch('https://git.swe.zernmc.ru/api/v1/repos/sasheg/launcher/languages'); } catch(e2) {}
try { data = await tryFetch('https://git.swe.zernmc.ru/api/v1/repos/sasheg/launcher/languages'); } catch(e) {
// Gitea fallback only, GitHub mirror removed
}
if (!data || typeof data !== 'object') return;
const total = Object.values(data).reduce((a,b)=>a+b,0);