diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/github/webview.js | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip |
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/github/webview.js')
-rw-r--r-- | recipes/github/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
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 | }; |