fix: display release versions with a single v in the dashboard
Some checks are pending
CI / vet-build-test (push) Waiting to run

This commit is contained in:
shoemoney 2026-11-27 21:35:05 -06:00
parent f6b2554740
commit c655e941bc
No known key found for this signature in database

View file

@ -1324,7 +1324,7 @@
===================================================================== */
function applyState(s){
const prev={...state.totals};
if(s.hub){ state.hub=s.hub; $("m-version").textContent=s.hub.version||"—";
if(s.hub){ state.hub=s.hub; $("m-version").textContent=(s.hub.version||"—").replace(/^v/, "");
state.baseUptime=s.hub.uptime_s||0; state.baseUptimeAt=Date.now(); }
if(s.totals){ state.totals={...state.totals, ...s.totals}; }
if(Array.isArray(s.devices)){ state.devices=s.devices;