diff options
Diffstat (limited to 'recipes/teamleader')
-rw-r--r-- | recipes/teamleader/package.json | 2 | ||||
-rw-r--r-- | recipes/teamleader/webview.js | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/recipes/teamleader/package.json b/recipes/teamleader/package.json index 332f28f..83a8521 100644 --- a/recipes/teamleader/package.json +++ b/recipes/teamleader/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "teamleader", | 2 | "id": "teamleader", |
3 | "name": "teamleader", | 3 | "name": "teamleader", |
4 | "version": "1.1.0", | 4 | "version": "1.1.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://app.teamleader.eu/?gotologin", | 7 | "serviceURL": "https://app.teamleader.eu/?gotologin", |
diff --git a/recipes/teamleader/webview.js b/recipes/teamleader/webview.js index 3041463..7eff414 100644 --- a/recipes/teamleader/webview.js +++ b/recipes/teamleader/webview.js | |||
@@ -4,8 +4,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de | |||
4 | 4 | ||
5 | module.exports = (Ferdi) => { | 5 | module.exports = (Ferdi) => { |
6 | const getMessages = () => { | 6 | const getMessages = () => { |
7 | const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); | 7 | Ferdi.setBadge(document.getElementById('notifications_amount').innerHTML); |
8 | Ferdi.setBadge(unreadNotifications); | ||
9 | }; | 8 | }; |
10 | 9 | ||
11 | Ferdi.loop(getMessages); | 10 | Ferdi.loop(getMessages); |