Skip to content

Commit

Permalink
Revert "Chrome, at least, requires .show() to be called."
Browse files Browse the repository at this point in the history
This function doesn't exist in all browsers.

This reverts commit 86dd92c.
  • Loading branch information
mrubinsk committed Dec 2, 2013
1 parent 3af55ba commit e42b879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Core/js/hordecore.js
Expand Up @@ -442,11 +442,11 @@ var HordeCore = {
if (window.Notification && window.Notification.permission != 'granted') {
window.Notification.requestPermission(function(){
if (window.Notification.permission == 'granted') {
new window.Notification(msg.title, {body: msg.text, icon: msg.icon }).show();
new window.Notification(msg.title, {body: msg.text, icon: msg.icon });
}
});
} else if (window.Notification) {
new window.Notification(msg.title, {body: msg.text, icon: msg.icon }).show();
new window.Notification(msg.title, {body: msg.text, icon: msg.icon });
}
},

Expand Down

0 comments on commit e42b879

Please sign in to comment.