aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/facebook
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/facebook')
-rwxr-xr-xrecipes/facebook/index.js2
-rwxr-xr-xrecipes/facebook/package.json2
-rwxr-xr-xrecipes/facebook/webview.js10
3 files changed, 7 insertions, 7 deletions
diff --git a/recipes/facebook/index.js b/recipes/facebook/index.js
index 23607bd..dd41f72 100755
--- a/recipes/facebook/index.js
+++ b/recipes/facebook/index.js
@@ -1 +1 @@
module.exports = Ferdi => Ferdi; module.exports = Ferdium => Ferdium;
diff --git a/recipes/facebook/package.json b/recipes/facebook/package.json
index 53bc486..b76a2c7 100755
--- a/recipes/facebook/package.json
+++ b/recipes/facebook/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "facebook", 2 "id": "facebook",
3 "name": "Facebook", 3 "name": "Facebook",
4 "version": "1.1.2", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://www.facebook.com/login" 7 "serviceURL": "https://www.facebook.com/login"
diff --git a/recipes/facebook/webview.js b/recipes/facebook/webview.js
index 3100935..d9e8687 100755
--- a/recipes/facebook/webview.js
+++ b/recipes/facebook/webview.js
@@ -1,4 +1,4 @@
1module.exports = Ferdi => { 1module.exports = Ferdium => {
2 const getNotifications = function getNotifications() { 2 const getNotifications = function getNotifications() {
3 let count = 0; 3 let count = 0;
4 4
@@ -13,11 +13,11 @@ module.exports = Ferdi => {
13 13
14 for (const element of elements) { 14 for (const element of elements) {
15 if (element !== null) { 15 if (element !== null) {
16 count += Ferdi.safeParseInt(element.textContent); 16 count += Ferdium.safeParseInt(element.textContent);
17 } 17 }
18 } 18 }
19 19
20 Ferdi.setBadge(count); 20 Ferdium.setBadge(count);
21 }; 21 };
22 22
23 const getActiveDialogTitle = () => { 23 const getActiveDialogTitle = () => {
@@ -30,7 +30,7 @@ module.exports = Ferdi => {
30 ), 30 ),
31 ].find(Boolean); 31 ].find(Boolean);
32 32
33 Ferdi.setDialogTitle(element ? element.textContent : null); 33 Ferdium.setDialogTitle(element ? element.textContent : null);
34 }; 34 };
35 35
36 const loopFunc = () => { 36 const loopFunc = () => {
@@ -38,5 +38,5 @@ module.exports = Ferdi => {
38 getActiveDialogTitle(); 38 getActiveDialogTitle();
39 }; 39 };
40 40
41 Ferdi.loop(loopFunc); 41 Ferdium.loop(loopFunc);
42}; 42};