aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/linkedin/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/linkedin/webview.js')
-rw-r--r--recipes/linkedin/webview.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/recipes/linkedin/webview.js b/recipes/linkedin/webview.js
index f109b0d..1017d26 100644
--- a/recipes/linkedin/webview.js
+++ b/recipes/linkedin/webview.js
@@ -6,9 +6,8 @@ module.exports = Ferdi => {
6 count = document.querySelectorAll('.msg-conversation-card__unread-count').length; 6 count = document.querySelectorAll('.msg-conversation-card__unread-count').length;
7 } else { 7 } else {
8 const element = document.querySelector('.nav-item--messaging .nav-item__badge-count'); 8 const element = document.querySelector('.nav-item--messaging .nav-item__badge-count');
9
10 if (element) { 9 if (element) {
11 count = parseInt(element.innerHTML, 10); 10 count = Ferdi.safeParseInt(element.innerHTML);
12 } 11 }
13 } 12 }
14 13