From 7517a409a1a502c747eb4598492a88cec4e8d58c Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sun, 19 Sep 2021 07:26:25 +0530 Subject: fix: fix js error; styling --- recipes/habitica/package.json | 2 +- recipes/habitica/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/habitica') diff --git a/recipes/habitica/package.json b/recipes/habitica/package.json index 574a5d8..dad1a93 100755 --- a/recipes/habitica/package.json +++ b/recipes/habitica/package.json @@ -1,7 +1,7 @@ { "id": "habitica", "name": "Habitica", - "version": "1.1.0", + "version": "1.1.1", "license": "MIT", "repository": "https://github.com/lmnet/franz-recipe-notion", "config": { diff --git a/recipes/habitica/webview.js b/recipes/habitica/webview.js index 3b443c5..c856fca 100755 --- a/recipes/habitica/webview.js +++ b/recipes/habitica/webview.js @@ -3,7 +3,7 @@ module.exports = (Ferdi) => { let count = 0; const element = document.querySelector('.message-count'); if (element) { - count = Number(element.innerText); + count = Ferdi.safeParseInt(element.innerText); } Ferdi.setBadge(count); }; -- cgit v1.2.3-54-g00ecf