mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-23 08:32:51 +00:00
fix(download+branches): fetch from rust, no update notif without url
This commit is contained in:
@@ -170,9 +170,9 @@ export function useGameManager({
|
||||
? `https://api.github.com/repos/${owner}/${repo}`
|
||||
: `${urlObj.origin}/api/v1/repos/${owner}/${repo}`;
|
||||
|
||||
const response = await fetch(`${apiBase}/releases`);
|
||||
if (response.ok) {
|
||||
const data = await response.json();
|
||||
const res = await TauriService.httpProxyRequest("GET", `${apiBase}/releases`, null, {});
|
||||
if (res.status >= 200 && res.status < 300) {
|
||||
const data = JSON.parse(res.body);
|
||||
let tags: string[] = data
|
||||
.map((r: { tag_name: string }) => r.tag_name)
|
||||
.filter((t: string) => !t.toLowerCase().includes("server"));
|
||||
|
||||
Reference in New Issue
Block a user