This commit is contained in:
2025-08-27 01:21:23 +09:00
parent b9a4fe8763
commit 81e9bea8ab
18 changed files with 368 additions and 63 deletions
+7 -1
View File
@@ -26,7 +26,7 @@ export default async function VersionCheck() {
const releaseUrl = `${packageJson.repository.url}/releases/tag/${packageJson.tag}`;
await fetch(`${config.uwuzu.host}/api/ueuse/create`, {
const req = await fetch(`${config.uwuzu.host}/api/ueuse/create`, {
method: "POST",
body: JSON.stringify({
token: config.uwuzu.apiToken,
@@ -37,6 +37,12 @@ export default async function VersionCheck() {
}),
cache: "no-store",
});
if (req.status < 200 || req.status > 299) {
return;
}
console.log("アップデート通知:", await req.json());
} catch (err) {
console.log("アップデート通知にエラーが発生しました: ", err);
}