diff options
author | Carlos SolĂs <csolisr@gmail.com> | 2022-06-21 09:39:54 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 15:39:54 +0000 |
commit | 08a7af9ef2bb0030fd1876674d53b719e91f13e2 (patch) | |
tree | da71d5f5d17e90faaf0af07fd0e97936b8820aff /recipes/nextcloud-news/webview.js | |
parent | docs: add dqos as a contributor for code (#72) [skip ci] (diff) | |
download | ferdium-recipes-08a7af9ef2bb0030fd1876674d53b719e91f13e2.tar.gz ferdium-recipes-08a7af9ef2bb0030fd1876674d53b719e91f13e2.tar.zst ferdium-recipes-08a7af9ef2bb0030fd1876674d53b719e91f13e2.zip |
Add fixes for Nextcloud-related webapps (#66)
Diffstat (limited to 'recipes/nextcloud-news/webview.js')
-rw-r--r-- | recipes/nextcloud-news/webview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/nextcloud-news/webview.js b/recipes/nextcloud-news/webview.js index c5e295e..33bf0c5 100644 --- a/recipes/nextcloud-news/webview.js +++ b/recipes/nextcloud-news/webview.js | |||
@@ -6,10 +6,10 @@ function _interopRequireDefault(obj) { | |||
6 | 6 | ||
7 | module.exports = Ferdium => { | 7 | module.exports = Ferdium => { |
8 | const getMessages = () => { | 8 | const getMessages = () => { |
9 | const selector = document.querySelector( | 9 | const directSelector = document.querySelector( |
10 | '.subscriptions-feed .app-navigation-entry-utils-counter', | 10 | '.subscriptions-feed .app-navigation-entry-utils-counter', |
11 | ); | 11 | ); |
12 | const direct = selector ? Ferdium.safeParseInt(selector.textContent) : 0; | 12 | const direct = directSelector ? Ferdium.safeParseInt(directSelector.textContent) : 0; |
13 | 13 | ||
14 | Ferdium.setBadge(direct); | 14 | Ferdium.setBadge(direct); |
15 | }; | 15 | }; |