web: clean up version string and reload on mismatch

This commit is contained in:
2024-09-01 15:02:34 -07:00
parent 1f393f1c7f
commit a8c5a164ff
2 changed files with 4 additions and 3 deletions

View File

@@ -519,9 +519,10 @@ pub fn update(msg: Msg, model: &mut Model, orders: &mut impl Orders<Msg>) {
Msg::UpdateServerVersion(version) => {
if version != model.versions.client {
warn!(
"Server ({}) and client ({}) version mismatch",
"Server ({}) and client ({}) version mismatch, reloading",
version, model.versions.client
);
orders.send_msg(Msg::Reload);
}
model.versions.server = Some(version);
}