Skip to content

Commit

Permalink
Merge pull request #71 from winebarrel/chore/fix_var_name
Browse files Browse the repository at this point in the history
userNotificationCenter -> center
  • Loading branch information
winebarrel authored Dec 11, 2024
2 parents 3b4c9cd + 2118ee5 commit 1bc9784
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 1bc9784

Please # to comment.