Implemented houses
This commit is contained in:
@@ -70,7 +70,7 @@ export default {
|
||||
}
|
||||
this.statusItems = [
|
||||
{ key: "age", icon: "👶", value: age },
|
||||
{ key: "wealth", icon: "💰", value: money },
|
||||
{ key: "wealth", icon: "💰", value: Intl.NumberFormat(navigator.language, { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(money) },
|
||||
{ key: "health", icon: "❤️", value: healthStatus },
|
||||
{ key: "events", icon: "📰", value: events || null },
|
||||
];
|
||||
@@ -80,12 +80,15 @@ export default {
|
||||
},
|
||||
async handleDaemonSocketMessage(event) {
|
||||
try {
|
||||
if (event.data === 'ping') {
|
||||
return;
|
||||
}
|
||||
const data = JSON.parse(event.data);
|
||||
if (data.event === "falukantUpdateStatus") {
|
||||
this.fetchStatus();
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Error parsing daemonSocket message:", error);
|
||||
console.error("Error parsing daemonSocket message:", error, event.data);
|
||||
}
|
||||
},
|
||||
openPage(url, hasSubmenu = false) {
|
||||
|
||||
Reference in New Issue
Block a user