fix formatting

This commit is contained in:
Ryan Cao 2022-10-21 20:04:48 +08:00
parent 3e56cecbbf
commit 13effc58fe
No known key found for this signature in database
5 changed files with 164 additions and 153 deletions

View file

@ -23,7 +23,9 @@ export async function getLatestMinecraftVersion(): Promise<string> {
// TODO: caching
export async function getLatestPrismLauncherVersion(): Promise<string> {
/* CHANGEME */
const f = await fetch('https://api.github.com/repos/PrismLauncher/PrismLauncher/releases');
const f = await fetch(
'https://api.github.com/repos/PrismLauncher/PrismLauncher/releases'
);
const versions = (await f.json()) as SimplifiedGHReleases[];
return versions[0].tag_name;