fix(webui): prevent duplicate v prefix in version and link to GitHub repo

This commit is contained in:
Jason Xu committed 2026-10-17 19:45:45 +08:00
1 parent a9470df4fc
commit 83d623d541
3 files changed
+20 -2

No files matched your search

+2 -1
View File
@@ -87,7 +87,8 @@ async function boot() {
setUnauthorizedHandler(showLogin);
store.on("monitor", (data) => {
$("#version").textContent = `v${data.version}`;
const version = String(data.version || "");
$("#version").textContent = version.startsWith("v") || version === "dev" ? version : `v${version}`;
});
for (const page of PAGES) page.init?.();