site: remove GitHub mirror button from git widget, keep only Gitea (languages fetch now Gitea-only)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user