Display the microscope's hostname in the interface

This commit is contained in:
Richard Bowman 2024-01-17 11:55:03 +00:00
parent 36a7ec3d2e
commit 674704b0d6
3 changed files with 17 additions and 1 deletions

View file

@ -321,6 +321,13 @@ export default {
);
}
}
try {
let hostname = await this.readThingProperty("settings", "hostname");
this.$store.commit("changeMicroscopeHostname", hostname);
document.title = `OpenFlexure Microscope: ${hostname}`;
} catch {
this.$store.commit("changeMicroscopeHostname", null);
}
this.$store.commit("setConnected");
this.$store.commit("setErrorMessage", null);
} catch (error) {