Skip to content

Commit

Permalink
Show App Window when Notification clicked
Browse files Browse the repository at this point in the history
Show the Application Window when a notification is clicked.
  • Loading branch information
sieren committed Dec 20, 2015
1 parent d3c3669 commit 881536b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WhatsMac/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ - (void)userNotificationCenter:(NSUserNotificationCenter *)center didActivateNot
[NSString stringWithFormat:@"openChat(\"%@\")", notification.identifier]
completionHandler:nil];
[center removeDeliveredNotification:notification];
[self showAppWindow:nil];
}

- (void)webView:(WKWebView *)webView runJavaScriptAlertPanelWithMessage:(NSString *)message initiatedByFrame:(WKFrameInfo *)frame completionHandler:(void (^)(void))completionHandler {
Expand Down

0 comments on commit 881536b

Please sign in to comment.