diff options
Diffstat (limited to 'uncompressed/slack/webview.js')
-rw-r--r-- | uncompressed/slack/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uncompressed/slack/webview.js b/uncompressed/slack/webview.js index 0d250e5..2b54c71 100644 --- a/uncompressed/slack/webview.js +++ b/uncompressed/slack/webview.js | |||
@@ -41,7 +41,7 @@ const SELECTOR_CHANNELS_UNREAD = '.p-channel_sidebar__channel--unread:not(.p-cha | |||
41 | 41 | ||
42 | module.exports = Franz => { | 42 | module.exports = Franz => { |
43 | const getMessages = () => { | 43 | const getMessages = () => { |
44 | const directMessages = document.querySelectorAll(`${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread:not([data-sidebar-link-id="Punreads"]`).length; | 44 | const directMessages = document.querySelectorAll(`${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread:not([data-sidebar-link-id="Punreads"]):not([data-sidebar-link-id="Pdrafts"])`).length; |
45 | const allMessages = document.querySelectorAll(SELECTOR_CHANNELS_UNREAD).length - directMessages; | 45 | const allMessages = document.querySelectorAll(SELECTOR_CHANNELS_UNREAD).length - directMessages; |
46 | Franz.setBadge(directMessages, allMessages); | 46 | Franz.setBadge(directMessages, allMessages); |
47 | }; | 47 | }; |
@@ -51,4 +51,4 @@ module.exports = Franz => { | |||
51 | getTeamIcon(); | 51 | getTeamIcon(); |
52 | }, 4000); | 52 | }, 4000); |
53 | Franz.injectCSS(_path.default.join(__dirname, 'service.css')); | 53 | Franz.injectCSS(_path.default.join(__dirname, 'service.css')); |
54 | }; \ No newline at end of file | 54 | }; |