aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/github/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/github/webview.js')
-rw-r--r--recipes/github/webview.js8
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 @@
1module.exports = Ferdi => { 1module.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};