diff options
author | 2023-09-11 08:26:05 +0530 | |
---|---|---|
committer | 2023-09-11 02:59:47 +0000 | |
commit | 446cc2d05ee3a5ca66eabd1e109ba23778d8838c (patch) | |
tree | 7a6346efd41e4f37791c7615deae27de44939165 /recipes/hipchat/webview.js | |
parent | Update icons (#419) (diff) | |
download | ferdium-recipes-446cc2d05ee3a5ca66eabd1e109ba23778d8838c.tar.gz ferdium-recipes-446cc2d05ee3a5ca66eabd1e109ba23778d8838c.tar.zst ferdium-recipes-446cc2d05ee3a5ca66eabd1e109ba23778d8838c.zip |
Remove references to hipchat
Diffstat (limited to 'recipes/hipchat/webview.js')
-rw-r--r-- | recipes/hipchat/webview.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/recipes/hipchat/webview.js b/recipes/hipchat/webview.js deleted file mode 100644 index 6871fbb..0000000 --- a/recipes/hipchat/webview.js +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
7 | module.exports = Ferdium => { | ||
8 | const getMessages = () => { | ||
9 | const directMessages = document.querySelectorAll('.hc-mention').length; | ||
10 | const allMessages = | ||
11 | document.querySelectorAll('.aui-badge:not(.hc-mention)').length - | ||
12 | directMessages; | ||
13 | |||
14 | // set Ferdium badge | ||
15 | Ferdium.setBadge(directMessages, allMessages); | ||
16 | }; | ||
17 | |||
18 | Ferdium.loop(getMessages); | ||
19 | |||
20 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
21 | }; | ||