aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/habitica/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/habitica/webview.js')
-rwxr-xr-xrecipes/habitica/webview.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/recipes/habitica/webview.js b/recipes/habitica/webview.js
index 02b2e2d..5eb1c1c 100755
--- a/recipes/habitica/webview.js
+++ b/recipes/habitica/webview.js
@@ -4,9 +4,6 @@ module.exports = (Franz) => {
4 const element = document.querySelector('.message-count'); 4 const element = document.querySelector('.message-count');
5 if (element) { 5 if (element) {
6 count = Number(element.innerText); 6 count = Number(element.innerText);
7 if (Number.isNaN(count)) {
8 count = 0;
9 }
10 } 7 }
11 Franz.setBadge(count); 8 Franz.setBadge(count);
12 }; 9 };