Skip to content

Commit

Permalink
Merge pull request #76 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 277cac4 + e3f1fd5 commit 32fa563
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PagerCall/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 32fa563

Please sign in to comment.