diff options
Diffstat (limited to 'recipes/bip')
-rw-r--r-- | recipes/bip/index.js | 2 | ||||
-rw-r--r-- | recipes/bip/package.json | 2 | ||||
-rw-r--r-- | recipes/bip/webview.js | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/recipes/bip/index.js b/recipes/bip/index.js index 8949ee0..dd41f72 100644 --- a/recipes/bip/index.js +++ b/recipes/bip/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Ferdi => class bip extends Ferdi {}; | module.exports = Ferdium => Ferdium; | ||
diff --git a/recipes/bip/package.json b/recipes/bip/package.json index 0ad1628..18d9f68 100644 --- a/recipes/bip/package.json +++ b/recipes/bip/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "bip", | 2 | "id": "bip", |
3 | "name": "BiP", | 3 | "name": "BiP", |
4 | "version": "1.1.3", | 4 | "version": "1.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://web.bip.com/", | 7 | "serviceURL": "https://web.bip.com/", |
diff --git a/recipes/bip/webview.js b/recipes/bip/webview.js index 8b9eccc..59c51f0 100644 --- a/recipes/bip/webview.js +++ b/recipes/bip/webview.js | |||
@@ -1,12 +1,12 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | const getMessages = () => { | 2 | const getMessages = () => { |
3 | const elements = document.querySelectorAll('.contact-list__message__unread-badge-counter'); | 3 | const elements = document.querySelectorAll('.contact-list__message__unread-badge-counter'); |
4 | let count = 0; | 4 | let count = 0; |
5 | for (const element of elements) { | 5 | for (const element of elements) { |
6 | count += Ferdi.safeParseInt(element.textContent); | 6 | count += Ferdium.safeParseInt(element.textContent); |
7 | } | 7 | } |
8 | Ferdi.setBadge(count, 0); | 8 | Ferdium.setBadge(count, 0); |
9 | }; | 9 | }; |
10 | 10 | ||
11 | Ferdi.loop(getMessages); | 11 | Ferdium.loop(getMessages); |
12 | }; | 12 | }; |