From 2118ee5b23d0007d30e660c2b979965cfba5cd41 Mon Sep 17 00:00:00 2001 From: winebarrel Date: Wed, 11 Dec 2024 17:45:25 +0900 Subject: [PATCH] userNotificationCenter -> center --- Pulse/AppDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pulse/AppDelegate.swift b/Pulse/AppDelegate.swift index e614948..eb7b86a 100644 --- a/Pulse/AppDelegate.swift +++ b/Pulse/AppDelegate.swift @@ -7,9 +7,9 @@ class AppDelegate: NSObject, NSApplicationDelegate { Task { do { - let userNotificationCenter = UNUserNotificationCenter.current() + let center = UNUserNotificationCenter.current() - guard try await userNotificationCenter.requestAuthorization(options: [.alert, .sound]) else { + guard try await center.requestAuthorization(options: [.alert, .sound]) else { Logger.shared.warning("user notification not authorized") return }