Skip to content

Commit

Permalink
userNotificationCenter -> center
Browse files Browse the repository at this point in the history
  • Loading branch information
winebarrel committed Dec 11, 2024
1 parent 5fb8871 commit 2118ee5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pulse/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2118ee5

Please # to comment.