fix(mac): avoid static UserDefaults in InstanceIdentity

This commit is contained in:
Peter Steinberger
2025-12-12 16:59:51 +00:00
parent 6a05d60f41
commit fd0314a6bd

View File

@@ -4,9 +4,9 @@ enum InstanceIdentity {
private static let suiteName = "com.steipete.clawdis.shared"
private static let instanceIdKey = "instanceId"
private static let defaults: UserDefaults = {
private static var defaults: UserDefaults {
UserDefaults(suiteName: suiteName) ?? .standard
}()
}
static let instanceId: String = {
if let existing = defaults.string(forKey: instanceIdKey)?