Use electron notification
This commit is contained in:
parent
bcf578a4e2
commit
62fe875056
|
@ -8,6 +8,7 @@ ipc.on('retrieveUnreadCount', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Show balloon when notified.
|
// Show balloon when notified.
|
||||||
|
/*
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
Notification = function(title, options) {
|
Notification = function(title, options) {
|
||||||
ipc.send('notified', {
|
ipc.send('notified', {
|
||||||
|
@ -20,6 +21,7 @@ if (process.platform === 'win32') {
|
||||||
};
|
};
|
||||||
Notification.prototype.close = function() {};
|
Notification.prototype.close = function() {};
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Show window even if it is hidden when notification is clicked.
|
// Show window even if it is hidden when notification is clicked.
|
||||||
var NativeNotification = null;
|
var NativeNotification = null;
|
||||||
|
|
Loading…
Reference in a new issue