services: null check for ConfigOptions for hackability/yoinkability

This commit is contained in:
end-4
2025-05-19 23:36:17 +02:00
parent cd177a3fcd
commit 26a5dbd91c
6 changed files with 7 additions and 14 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ Singleton {
if (hours > 0) formatted += `${formatted ? ", " : ""}${hours}h`
if (minutes > 0 || !formatted) formatted += `${formatted ? ", " : ""}${minutes}m`
uptime = formatted
interval = ConfigOptions.resources.updateInterval;
interval = ConfigOptions?.resources?.updateInterval ?? 3000
}
}