diff options
author | 2021-08-17 10:47:32 +0530 | |
---|---|---|
committer | 2021-08-17 10:47:32 +0530 | |
commit | 212d5846427ceeacfadf5aac3f381b532f4664a1 (patch) | |
tree | 7badcbb01930e77a2b2745e189e89323111ef470 /recipes/monday | |
parent | Moved all npm packages to the 'devDependencies' since there is no node-runtim... (diff) | |
download | ferdium-recipes-212d5846427ceeacfadf5aac3f381b532f4664a1.tar.gz ferdium-recipes-212d5846427ceeacfadf5aac3f381b532f4664a1.tar.zst ferdium-recipes-212d5846427ceeacfadf5aac3f381b532f4664a1.zip |
Cleanup of recipes to remove 'NaN' of badge variables since this is handled in the main program.
Diffstat (limited to 'recipes/monday')
-rw-r--r-- | recipes/monday/package.json | 2 | ||||
-rwxr-xr-x | recipes/monday/webview.js | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/recipes/monday/package.json b/recipes/monday/package.json index d7495f1..30436b6 100644 --- a/recipes/monday/package.json +++ b/recipes/monday/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "monday", | 2 | "id": "monday", |
3 | "name": "Monday", | 3 | "name": "Monday", |
4 | "version": "1.0.3", | 4 | "version": "1.0.4", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://{teamId}.monday.com", | 7 | "serviceURL": "https://{teamId}.monday.com", |
diff --git a/recipes/monday/webview.js b/recipes/monday/webview.js index ff83694..e07e784 100755 --- a/recipes/monday/webview.js +++ b/recipes/monday/webview.js | |||
@@ -12,10 +12,6 @@ module.exports = Franz => { | |||
12 | count += parseInt(counters[i].textContent); | 12 | count += parseInt(counters[i].textContent); |
13 | } | 13 | } |
14 | 14 | ||
15 | if (isNaN(count)) { | ||
16 | count = 0; | ||
17 | } | ||
18 | |||
19 | Franz.setBadge(count); | 15 | Franz.setBadge(count); |
20 | }; | 16 | }; |
21 | 17 | ||