mirror of
https://github.com/misode/misode.github.io.git
synced 2026-05-06 23:41:48 +00:00
Remove unnecessary json parsing for presets and snippets
This commit is contained in:
@@ -139,7 +139,7 @@ export async function fetchPreset(versionId: VersionId, registry: string, id: st
|
||||
url = `${mcmeta(version, type)}/${type}/minecraft/${registry}/${id}.json`
|
||||
}
|
||||
const res = await fetch(url)
|
||||
return await res.json()
|
||||
return await res.text()
|
||||
} catch (e) {
|
||||
throw new Error(`Error occurred while fetching ${registry} preset ${id}: ${message(e)}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user