Suppress the second icon on OS X notification for #151

This commit is contained in:
Yuya Ochiai 2016-06-08 00:45:10 +09:00
parent 709f8363ed
commit 5841231477

View file

@ -2,6 +2,10 @@ const OriginalNotification = Notification;
function override(eventHandlers) {
Notification = function(title, options) {
// Notification Center shows app's icon, so there were two icons on the notification.
if (process.platform === 'darwin') {
delete options.icon;
}
this.notification = new OriginalNotification(title, options);
if (eventHandlers.notification) {
eventHandlers.notification(title, options);