aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/hubstaff
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/hubstaff')
-rw-r--r--recipes/hubstaff/index.js2
-rw-r--r--recipes/hubstaff/package.json4
-rw-r--r--recipes/hubstaff/webview.js10
3 files changed, 8 insertions, 8 deletions
diff --git a/recipes/hubstaff/index.js b/recipes/hubstaff/index.js
index 651c280..dd41f72 100644
--- a/recipes/hubstaff/index.js
+++ b/recipes/hubstaff/index.js
@@ -1 +1 @@
module.exports = Ferdi => class Hubstaff extends Ferdi {}; module.exports = Ferdium => Ferdium;
diff --git a/recipes/hubstaff/package.json b/recipes/hubstaff/package.json
index bcb675b..36a3d87 100644
--- a/recipes/hubstaff/package.json
+++ b/recipes/hubstaff/package.json
@@ -1,10 +1,10 @@
1{ 1{
2 "id": "hubstaff", 2 "id": "hubstaff",
3 "name": "HubStaff", 3 "name": "HubStaff",
4 "version": "1.0.0", 4 "version": "1.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://app.hubstaff.com/login_now", 7 "serviceURL": "https://app.hubstaff.com/login_now",
8 "hasNotificationSound": true 8 "hasNotificationSound": true
9 } 9 }
10} \ No newline at end of file 10}
diff --git a/recipes/hubstaff/webview.js b/recipes/hubstaff/webview.js
index 408f78c..c925f18 100644
--- a/recipes/hubstaff/webview.js
+++ b/recipes/hubstaff/webview.js
@@ -1,4 +1,4 @@
1module.exports = (Ferdi) => { 1module.exports = (Ferdium) => {
2 // TODO: If your hubstaff service has unread messages, uncomment these lines to implement the logic for updating the badges 2 // TODO: If your hubstaff service has unread messages, uncomment these lines to implement the logic for updating the badges
3 const getMessages = () => { 3 const getMessages = () => {
4 // TODO: Insert your notification-finding code here 4 // TODO: Insert your notification-finding code here
@@ -6,10 +6,10 @@ module.exports = (Ferdi) => {
6 let indirectMessages = 0; 6 let indirectMessages = 0;
7 const notificationContainers = document.querySelectorAll('.notifications-number'); 7 const notificationContainers = document.querySelectorAll('.notifications-number');
8 if (notificationContainers){ 8 if (notificationContainers){
9 directMessages = Ferdi.safeParseInt(notificationContainers[0].textContent); 9 directMessages = Ferdium.safeParseInt(notificationContainers[0].textContent);
10 indirectMessages = Ferdi.safeParseInt(notificationContainers[1].textContent); 10 indirectMessages = Ferdium.safeParseInt(notificationContainers[1].textContent);
11 } 11 }
12 Ferdi.setBadge(directMessages, indirectMessages); 12 Ferdium.setBadge(directMessages, indirectMessages);
13 }; 13 };
14 Ferdi.loop(getMessages); 14 Ferdium.loop(getMessages);
15}; 15};