Skip to content

Commit c15c662

Browse files
author
Emmanouil Konstantinidis
committed
Show more info if one 1 new notification
1 parent b1389a7 commit c15c662

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/js/stores/notifications.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ var NotificationsStore = Reflux.createStore({
4444
audio.play();
4545
}
4646
if (showNotifications) {
47+
var title = (countNew == 1 ?
48+
'Gitify - ' + response[0].repository.full_name :
49+
'Gitify');
4750
var body = (countNew == 1 ?
48-
'You\'ve got a new notification' :
51+
response[0].subject.title :
4952
'You\'ve got ' + countNew + ' notifications.');
50-
var nativeNotification = new Notification('Gitify', {
53+
var nativeNotification = new Notification(title, {
5154
body: body
5255
});
5356
nativeNotification.onclick = function () {

0 commit comments

Comments
 (0)