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