fix(mac): avoid static UserDefaults in InstanceIdentity

This commit is contained in:
Peter Steinberger 2025-12-12 16:59:51 +00:00
parent 5a7b72e4f8
commit 994844d5f7

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)?