aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/fastmail
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-17 10:47:32 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-17 10:47:32 +0530
commit212d5846427ceeacfadf5aac3f381b532f4664a1 (patch)
tree7badcbb01930e77a2b2745e189e89323111ef470 /recipes/fastmail
parentMoved all npm packages to the 'devDependencies' since there is no node-runtim... (diff)
downloadferdium-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/fastmail')
-rw-r--r--recipes/fastmail/package.json2
-rw-r--r--recipes/fastmail/webview.js4
2 files changed, 2 insertions, 4 deletions
diff --git a/recipes/fastmail/package.json b/recipes/fastmail/package.json
index 01da053..b0ded8f 100644
--- a/recipes/fastmail/package.json
+++ b/recipes/fastmail/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "fastmail", 2 "id": "fastmail",
3 "name": "FastMail", 3 "name": "FastMail",
4 "version": "2.0.1", 4 "version": "2.0.2",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://www.fastmail.com/mail/", 7 "serviceURL": "https://www.fastmail.com/mail/",
diff --git a/recipes/fastmail/webview.js b/recipes/fastmail/webview.js
index 48066fe..5355dbe 100644
--- a/recipes/fastmail/webview.js
+++ b/recipes/fastmail/webview.js
@@ -7,9 +7,7 @@ module.exports = (Franz) => {
7 return; 7 return;
8 } 8 }
9 const messages = Number(inbox.innerText); 9 const messages = Number(inbox.innerText);
10 if (!Number.isNaN(messages)) { 10 Franz.setBadge(messages);
11 Franz.setBadge(messages);
12 }
13 }; 11 };
14 12
15 Franz.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js')); 13 Franz.injectJSUnsafe(path.join(__dirname, 'webview-unsafe.js'));