diff options
Diffstat (limited to 'recipes/gitter')
-rw-r--r-- | recipes/gitter/index.js | 2 | ||||
-rw-r--r-- | recipes/gitter/package.json | 2 | ||||
-rw-r--r-- | recipes/gitter/webview.js | 12 |
3 files changed, 8 insertions, 8 deletions
diff --git a/recipes/gitter/index.js b/recipes/gitter/index.js index 23607bd..dd41f72 100644 --- a/recipes/gitter/index.js +++ b/recipes/gitter/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => Ferdi; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/gitter/package.json b/recipes/gitter/package.json index e931b67..36e64c6 100644 --- a/recipes/gitter/package.json +++ b/recipes/gitter/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "gitter", | 2 | "id": "gitter", |
3 | "name": "Gitter", | 3 | "name": "Gitter", |
4 | "version": "1.1.2", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://gitter.im", | 7 | "serviceURL": "https://gitter.im", |
diff --git a/recipes/gitter/webview.js b/recipes/gitter/webview.js index c4eee5b..9dbd7e5 100644 --- a/recipes/gitter/webview.js +++ b/recipes/gitter/webview.js | |||
@@ -4,23 +4,23 @@ function _interopRequireDefault(obj) { | |||
4 | return obj && obj.__esModule ? obj : { default: obj }; | 4 | return obj && obj.__esModule ? obj : { default: obj }; |
5 | } | 5 | } |
6 | 6 | ||
7 | module.exports = Ferdi => { | 7 | module.exports = Ferdium => { |
8 | const getMessages = () => { | 8 | const getMessages = () => { |
9 | // get unread messages | 9 | // get unread messages |
10 | let directCount = 0; | 10 | let directCount = 0; |
11 | for (const node of document.querySelectorAll('div.unread-indicator')) { | 11 | for (const node of document.querySelectorAll('div.unread-indicator')) { |
12 | directCount += Ferdi.safeParseInt(node.textContent); | 12 | directCount += Ferdium.safeParseInt(node.textContent); |
13 | } | 13 | } |
14 | 14 | ||
15 | const channelMentionCount = | 15 | const channelMentionCount = |
16 | document.querySelectorAll('.mention-indicator').length; | 16 | document.querySelectorAll('.mention-indicator').length; |
17 | 17 | ||
18 | // set Ferdi badge | 18 | // set Ferdium badge |
19 | Ferdi.setBadge(directCount, channelMentionCount); | 19 | Ferdium.setBadge(directCount, channelMentionCount); |
20 | }; | 20 | }; |
21 | 21 | ||
22 | Ferdi.loop(getMessages); | 22 | Ferdium.loop(getMessages); |
23 | 23 | ||
24 | // Hide download message | 24 | // Hide download message |
25 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | 25 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); |
26 | }; | 26 | }; |