diff options
Diffstat (limited to 'recipes/github')
-rw-r--r-- | recipes/github/index.js | 2 | ||||
-rw-r--r-- | recipes/github/package.json | 2 | ||||
-rw-r--r-- | recipes/github/webview.js | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/github/index.js b/recipes/github/index.js index 84cb38d..dd41f72 100644 --- a/recipes/github/index.js +++ b/recipes/github/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => class GitHub extends Ferdi {}; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/github/package.json b/recipes/github/package.json index 5ecd276..26ca696 100644 --- a/recipes/github/package.json +++ b/recipes/github/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "github", | 2 | "id": "github", |
3 | "name": "GitHub", | 3 | "name": "GitHub", |
4 | "version": "2.3.1", | 4 | "version": "2.4.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://github.com/notifications", | 7 | "serviceURL": "https://github.com/notifications", |
diff --git a/recipes/github/webview.js b/recipes/github/webview.js index d63a4c5..aaa1e5d 100644 --- a/recipes/github/webview.js +++ b/recipes/github/webview.js | |||
@@ -1,11 +1,11 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | const directCountElement = document.querySelector( | 3 | const directCountElement = document.querySelector( |
4 | '.filter-list.js-notification-inboxes .count', | 4 | '.filter-list.js-notification-inboxes .count', |
5 | ); | 5 | ); |
6 | let directCount = 0; | 6 | let directCount = 0; |
7 | if (directCountElement) { | 7 | if (directCountElement) { |
8 | directCount = Ferdi.safeParseInt(directCountElement.textContent); | 8 | directCount = Ferdium.safeParseInt(directCountElement.textContent); |
9 | } | 9 | } |
10 | 10 | ||
11 | const indirectCountElement = document.querySelector( | 11 | const indirectCountElement = document.querySelector( |
@@ -16,8 +16,8 @@ module.exports = Ferdi => { | |||
16 | indirectCount = 1; | 16 | indirectCount = 1; |
17 | } | 17 | } |
18 | 18 | ||
19 | Ferdi.setBadge(directCount, indirectCount); | 19 | Ferdium.setBadge(directCount, indirectCount); |
20 | }; | 20 | }; |
21 | 21 | ||
22 | Ferdi.loop(getMessages); | 22 | Ferdium.loop(getMessages); |
23 | }; | 23 | }; |