diff options
Diffstat (limited to 'recipes/pushover')
-rw-r--r-- | recipes/pushover/package.json | 2 | ||||
-rw-r--r-- | recipes/pushover/webview.js | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/recipes/pushover/package.json b/recipes/pushover/package.json index 22a9db3..c56750b 100644 --- a/recipes/pushover/package.json +++ b/recipes/pushover/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "pushover", | 2 | "id": "pushover", |
3 | "name": "Pushover", | 3 | "name": "Pushover", |
4 | "version": "1.1.0", | 4 | "version": "1.1.1", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "repository": "https://github.com/jdwhite/franz-recipe-pushover", | 6 | "repository": "https://github.com/jdwhite/franz-recipe-pushover", |
7 | "config": { | 7 | "config": { |
diff --git a/recipes/pushover/webview.js b/recipes/pushover/webview.js index 30d596b..56381ed 100644 --- a/recipes/pushover/webview.js +++ b/recipes/pushover/webview.js | |||
@@ -6,9 +6,7 @@ const _path = _interopRequireDefault(require('path')); | |||
6 | 6 | ||
7 | module.exports = Ferdium => { | 7 | module.exports = Ferdium => { |
8 | const getMessages = () => { | 8 | const getMessages = () => { |
9 | const totalMessages = document.querySelector( | 9 | const totalMessages = document.querySelectorAll('.message_row').length; |
10 | '#app_0 > div.app_counter', | ||
11 | ).innerHTML; | ||
12 | Ferdium.setBadge(totalMessages); | 10 | Ferdium.setBadge(totalMessages); |
13 | }; | 11 | }; |
14 | 12 | ||