diff options
Diffstat (limited to 'recipes/reddit')
-rw-r--r-- | recipes/reddit/package.json | 2 | ||||
-rw-r--r-- | recipes/reddit/webview.js | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/recipes/reddit/package.json b/recipes/reddit/package.json index 7dd62e2..b1e9399 100644 --- a/recipes/reddit/package.json +++ b/recipes/reddit/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "reddit", | 2 | "id": "reddit", |
3 | "name": "Reddit", | 3 | "name": "Reddit", |
4 | "version": "1.1.0", | 4 | "version": "1.1.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/getferdi/recipes", | 6 | "repository": "https://github.com/getferdi/recipes", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/reddit/webview.js b/recipes/reddit/webview.js index dc83d3d..ad2c83e 100644 --- a/recipes/reddit/webview.js +++ b/recipes/reddit/webview.js | |||
@@ -8,10 +8,9 @@ module.exports = (Ferdi) => { | |||
8 | let count = 0; | 8 | let count = 0; |
9 | 9 | ||
10 | if (elements[0]) { | 10 | if (elements[0]) { |
11 | count = parseInt(elements[0].innerHTML, 10); | 11 | count = Ferdi.safeParseInt(elements[0].innerHTML); |
12 | } | 12 | } |
13 | 13 | ||
14 | console.log(count); | ||
15 | Ferdi.setBadge(count); | 14 | Ferdi.setBadge(count); |
16 | }; | 15 | }; |
17 | 16 | ||