diff options
Diffstat (limited to 'recipes/habitica')
-rwxr-xr-x | recipes/habitica/index.js | 2 | ||||
-rwxr-xr-x | recipes/habitica/package.json | 2 | ||||
-rwxr-xr-x | recipes/habitica/webview.js | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/recipes/habitica/index.js b/recipes/habitica/index.js index 258da41..23607bd 100755 --- a/recipes/habitica/index.js +++ b/recipes/habitica/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Franz => Franz; | module.exports = Ferdi => Ferdi; | ||
diff --git a/recipes/habitica/package.json b/recipes/habitica/package.json index 86539a4..574a5d8 100755 --- a/recipes/habitica/package.json +++ b/recipes/habitica/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "habitica", | 2 | "id": "habitica", |
3 | "name": "Habitica", | 3 | "name": "Habitica", |
4 | "version": "1.0.4", | 4 | "version": "1.1.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/lmnet/franz-recipe-notion", | 6 | "repository": "https://github.com/lmnet/franz-recipe-notion", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/habitica/webview.js b/recipes/habitica/webview.js index 5eb1c1c..3b443c5 100755 --- a/recipes/habitica/webview.js +++ b/recipes/habitica/webview.js | |||
@@ -1,12 +1,12 @@ | |||
1 | module.exports = (Franz) => { | 1 | module.exports = (Ferdi) => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | let count = 0; | 3 | let count = 0; |
4 | const element = document.querySelector('.message-count'); | 4 | const element = document.querySelector('.message-count'); |
5 | if (element) { | 5 | if (element) { |
6 | count = Number(element.innerText); | 6 | count = Number(element.innerText); |
7 | } | 7 | } |
8 | Franz.setBadge(count); | 8 | Ferdi.setBadge(count); |
9 | }; | 9 | }; |
10 | 10 | ||
11 | Franz.loop(getMessages); | 11 | Ferdi.loop(getMessages); |
12 | }; | 12 | }; |