From e9dd2e4dbb5179364e1a31f92692404c5fd94f9a Mon Sep 17 00:00:00 2001 From: didirus Date: Thu, 18 Jun 2026 04:02:54 +0300 Subject: [PATCH] fix(app-frontend): trim build suffix from app announcement version --- apps/app-frontend/src/App.vue | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/apps/app-frontend/src/App.vue b/apps/app-frontend/src/App.vue index 398d8ae09..ef1c56b07 100644 --- a/apps/app-frontend/src/App.vue +++ b/apps/app-frontend/src/App.vue @@ -395,6 +395,7 @@ async function setupApp() { const dev = await isDev() isDevEnvironment.value = dev const version = await getVersion() + const upstreamVersion = version.length > 2 ? version.slice(0, -2) : version showOnboarding.value = !onboarded nativeDecorations.value = native_decorations @@ -432,16 +433,7 @@ async function setupApp() { }), ) - // This code line modified by AstralRinth - // await log_listener((e) => - // addNotification({ - // title: 'Log', - // text: e.message, - // type: 'info', - // }), - // ) - - fetch(`https://api.modrinth.com/appCriticalAnnouncement.json?version=${version}`) + fetch(`https://api.modrinth.com/appCriticalAnnouncement.json?version=${upstreamVersion}`) .then((response) => response.json()) .then((res) => { if (res && res.header && res.body) { @@ -450,7 +442,7 @@ async function setupApp() { }) .catch(() => { console.log( - `No critical announcement found at https://api.modrinth.com/appCriticalAnnouncement.json?version=${version}`, + `No critical announcement found at https://api.modrinth.com/appCriticalAnnouncement.json?version=${upstreamVersion}`, ) })