Skip to content

Commit

Permalink
fix: crash when application launched from UNUserNotificationCenter no…
Browse files Browse the repository at this point in the history
…tification (#25702)
  • Loading branch information
miniak committed Oct 2, 2020
1 parent 5387b5b commit 17c7c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shell/browser/mac/electron_application_delegate.mm
Expand Up @@ -69,9 +69,9 @@ - (void)applicationWillFinishLaunching:(NSNotification*)notify {

- (void)applicationDidFinishLaunching:(NSNotification*)notify {
NSUserNotification* user_notification =
[notify userInfo][(id) @"NSApplicationLaunchUserNotificationKey"];
[notify userInfo][NSApplicationLaunchUserNotificationKey];

if (user_notification.userInfo) {
if ([user_notification isKindOfClass:[NSUserNotification class]]) {
electron::Browser::Get()->DidFinishLaunching(
electron::NSDictionaryToDictionaryValue(user_notification.userInfo));
} else {
Expand Down

0 comments on commit 17c7c5c

Please sign in to comment.