diff options
Diffstat (limited to 'recipes/kimaicloud')
-rw-r--r-- | recipes/kimaicloud/package.json | 2 | ||||
-rw-r--r-- | recipes/kimaicloud/webview.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/kimaicloud/package.json b/recipes/kimaicloud/package.json index f4c1dcf..902c2a3 100644 --- a/recipes/kimaicloud/package.json +++ b/recipes/kimaicloud/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "kimaicloud", | 2 | "id": "kimaicloud", |
3 | "name": "Kimai Cloud", | 3 | "name": "Kimai Cloud", |
4 | "version": "1.1.0", | 4 | "version": "1.1.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/kimai-cloud/recipe-kimaicloud", | 6 | "repository": "https://github.com/kimai-cloud/recipe-kimaicloud", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/kimaicloud/webview.js b/recipes/kimaicloud/webview.js index f4e2e9f..975b53d 100644 --- a/recipes/kimaicloud/webview.js +++ b/recipes/kimaicloud/webview.js | |||
@@ -1,11 +1,11 @@ | |||
1 | module.exports = (Ferdi) => { | 1 | module.exports = (Ferdi) => { |
2 | const getMessages = function getMessages() { | 2 | const getMessages = () => { |
3 | let count = 0; | 3 | let count = 0; |
4 | 4 | ||
5 | // get amount of running timesheets | 5 | // get amount of running timesheets |
6 | const label = document.querySelector('.main-header .navbar .dropdown.messages-menu .ticktac span.label'); | 6 | const label = document.querySelector('.main-header .navbar .dropdown.messages-menu .ticktac span.label'); |
7 | if (label !== undefined) { | 7 | if (label !== undefined) { |
8 | count = label.textContent; | 8 | count = Ferdi.safeParseInt(label.textContent); |
9 | } | 9 | } |
10 | 10 | ||
11 | // set Ferdi badge | 11 | // set Ferdi badge |