未読チャンネルがある場合、Windowsのタスクバーアイコンにオーバーレイアイコンを表示する

This commit is contained in:
Yuya Ochiai
2015-10-07 22:55:00 +09:00
parent 4772281fce
commit b7ec057d4a
5 changed files with 70 additions and 10 deletions

8
webview/mattermost.js Normal file
View File

@@ -0,0 +1,8 @@
'use strict';
var ipc = require('ipc');
ipc.on('retrieveUnreadCount', function(){
var unreadCount = document.getElementsByClassName('unread-title').length;
ipc.sendToHost('retrieveUnreadCount', unreadCount);
});