aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/hey/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/hey/webview.js')
-rw-r--r--recipes/hey/webview.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/hey/webview.js b/recipes/hey/webview.js
index 67e87d4..d92490b 100644
--- a/recipes/hey/webview.js
+++ b/recipes/hey/webview.js
@@ -1,4 +1,4 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getMessages = () => { 2 const getMessages = () => {
3 if (document.location.href == 'https://app.hey.com/') { 3 if (document.location.href == 'https://app.hey.com/') {
4 let screener = 0; 4 let screener = 0;
@@ -8,7 +8,7 @@ module.exports = Ferdi => {
8 let text = document.querySelectorAll('.btn--icon-screener')[0] 8 let text = document.querySelectorAll('.btn--icon-screener')[0]
9 .textContent; 9 .textContent;
10 if (text) { 10 if (text) {
11 const parsedText = Ferdi.safeParseInt(/\d+/.exec(text)); 11 const parsedText = Ferdium.safeParseInt(/\d+/.exec(text));
12 screener = parsedText[0]; 12 screener = parsedText[0];
13 } 13 }
14 } 14 }
@@ -26,9 +26,9 @@ module.exports = Ferdi => {
26 } 26 }
27 } 27 }
28 28
29 Ferdi.setBadge(unread, screener); 29 Ferdium.setBadge(unread, screener);
30 } 30 }
31 }; 31 };
32 32
33 Ferdi.loop(getMessages); 33 Ferdium.loop(getMessages);
34}; 34};