diff options
author | daudfatihah <daudfatihah35@yahoo.com> | 2023-10-18 07:10:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 00:10:46 +0100 |
commit | 5265ba8afab7c64133341474272d6995092a47aa (patch) | |
tree | 6d787a513870a3cf139665e0edebffb5a8abeccc /recipes/pushover/webview.js | |
parent | Handle Discord download links within Ferdium (#436) (diff) | |
download | ferdium-recipes-5265ba8afab7c64133341474272d6995092a47aa.tar.gz ferdium-recipes-5265ba8afab7c64133341474272d6995092a47aa.tar.zst ferdium-recipes-5265ba8afab7c64133341474272d6995092a47aa.zip |
Update PushOver notification count (#431)
* Update webview.js
change to check message_row class quantity instead app_count.
* Update package.json
* Fix lint and CI
---------
Co-authored-by: André Oliveira <oliveira.andrerodrigues95@gmail.com>
Diffstat (limited to 'recipes/pushover/webview.js')
-rw-r--r-- | recipes/pushover/webview.js | 4 |
1 files changed, 1 insertions, 3 deletions
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 | ||