aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/pleroma
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/pleroma')
-rw-r--r--recipes/pleroma/package.json2
-rw-r--r--recipes/pleroma/webview.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/recipes/pleroma/package.json b/recipes/pleroma/package.json
index 3993249..5a4fdf9 100644
--- a/recipes/pleroma/package.json
+++ b/recipes/pleroma/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "pleroma", 2 "id": "pleroma",
3 "name": "Pleroma", 3 "name": "Pleroma",
4 "version": "1.1.1", 4 "version": "1.1.2",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "hasCustomUrl": true 7 "hasCustomUrl": true
diff --git a/recipes/pleroma/webview.js b/recipes/pleroma/webview.js
index 07f2dc0..2c97ab3 100644
--- a/recipes/pleroma/webview.js
+++ b/recipes/pleroma/webview.js
@@ -143,9 +143,9 @@ module.exports = Ferdi => {
143 let directCount = 0; 143 let directCount = 0;
144 const matchArr = document.title.match(titleRegex); 144 const matchArr = document.title.match(titleRegex);
145 if (matchArr) { 145 if (matchArr) {
146 directCount = parseInt(matchArr[1], 10); 146 directCount = Ferdi.safeParseInt(matchArr[1]);
147 } 147 }
148 Ferdi.setBadge(directCount, 0); 148 Ferdi.setBadge(directCount);
149 }; 149 };
150 150
151 getInstanceLogo().then(({ logo, logoMask }) => { 151 getInstanceLogo().then(({ logo, logoMask }) => {