[Wiki] Fix broken version fetching

This commit is contained in:
Andre601 2024-09-26 01:36:07 +02:00
parent bb2a65eda8
commit aa280421ae
No known key found for this signature in database
GPG Key ID: 90E82BD59347A86C

View File

@ -10,10 +10,12 @@ document$.subscribe(async => {
} }
async function fetchAPIInfo() { async function fetchAPIInfo() {
const release = await fetch("https://papi-repo-proxy.vercel.app/repo/latest-release").then(_ => _.json()); const release = await fetch("https://repo.extendedclip.com/api/maven/latest/version/releases/me/clip/placeholderapi").then(_ => _.json());
console.log(release)
const data = { const data = {
"version": release.name "version": release.version
} }
__md_set("__api_tag", data, sessionStorage); __md_set("__api_tag", data, sessionStorage);