From 62fe875056e6b7716ad230b01f0a2d081b7c5a0b Mon Sep 17 00:00:00 2001 From: Yuya Ochiai Date: Fri, 20 Nov 2015 19:15:15 +0900 Subject: [PATCH] Use electron notification --- src/webview/mattermost.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/webview/mattermost.js b/src/webview/mattermost.js index de505257..8f78bc77 100644 --- a/src/webview/mattermost.js +++ b/src/webview/mattermost.js @@ -8,6 +8,7 @@ ipc.on('retrieveUnreadCount', function() { }); // Show balloon when notified. +/* if (process.platform === 'win32') { Notification = function(title, options) { ipc.send('notified', { @@ -20,6 +21,7 @@ if (process.platform === 'win32') { }; Notification.prototype.close = function() {}; } +*/ // Show window even if it is hidden when notification is clicked. var NativeNotification = null;