aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes/onmail/package.json2
-rw-r--r--recipes/onmail/webview.js4
2 files changed, 4 insertions, 2 deletions
diff --git a/recipes/onmail/package.json b/recipes/onmail/package.json
index 70b7e11..fd48d51 100644
--- a/recipes/onmail/package.json
+++ b/recipes/onmail/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "onmail", 2 "id": "onmail",
3 "name": "onMail", 3 "name": "onMail",
4 "version": "1.0.0", 4 "version": "1.0.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://mail.onmail.com" 7 "serviceURL": "https://mail.onmail.com"
diff --git a/recipes/onmail/webview.js b/recipes/onmail/webview.js
index 8565d76..9e881f4 100644
--- a/recipes/onmail/webview.js
+++ b/recipes/onmail/webview.js
@@ -10,7 +10,9 @@ module.exports = Ferdium => {
10 const inboxLinks = document.querySelectorAll('p.truncate'); 10 const inboxLinks = document.querySelectorAll('p.truncate');
11 for (const label of inboxLinks){ 11 for (const label of inboxLinks){
12 if (label.textContent) { 12 if (label.textContent) {
13 countImportant = Ferdium.safeParseInt(label.nextSibling.textContent); 13 let inbox_count = label.nextSibling
14 countImportant = inbox_count == null ? 0 : Ferdium.safeParseInt(inbox_count.textContent);
15
14 break; 16 break;
15 } 17 }
16 } 18 }