diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-10-05 16:46:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 16:46:55 +0200 |
commit | 2484c63d77e05fff384cc08b6ea46a29a22a62ec (patch) | |
tree | 21b8b74f1788407a4cfb13052160398f13424ac6 /recipes/mastodon/webview.js | |
parent | Add check to ensure that generated file 'user.js' is not present in default p... (diff) | |
download | ferdium-recipes-2484c63d77e05fff384cc08b6ea46a29a22a62ec.tar.gz ferdium-recipes-2484c63d77e05fff384cc08b6ea46a29a22a62ec.tar.zst ferdium-recipes-2484c63d77e05fff384cc08b6ea46a29a22a62ec.zip |
chore: repo maintenance (#732)
Diffstat (limited to 'recipes/mastodon/webview.js')
-rw-r--r-- | recipes/mastodon/webview.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes/mastodon/webview.js b/recipes/mastodon/webview.js index 4b450a1..8fb448f 100644 --- a/recipes/mastodon/webview.js +++ b/recipes/mastodon/webview.js | |||
@@ -1,11 +1,11 @@ | |||
1 | module.exports = (Ferdi) => { | 1 | module.exports = Ferdi => { |
2 | let latestStatement = $('.status time').attr('datetime'); | 2 | let latestStatement = $('.status time').attr('datetime'); |
3 | let latestNotify = $($('.notification__message span').get(0)).text(); | 3 | let latestNotify = $($('.notification__message span').get(0)).text(); |
4 | 4 | ||
5 | $($('div.column div.scrollable').get(0)).on('scroll', (ev) => { | 5 | $($('div.column div.scrollable').get(0)).on('scroll', () => { |
6 | latestStatement = $('.status time').attr('datetime'); | 6 | latestStatement = $('.status time').attr('datetime'); |
7 | }); | 7 | }); |
8 | $($('div.column div.scrollable').get(1)).on('scroll', (ev) => { | 8 | $($('div.column div.scrollable').get(1)).on('scroll', () => { |
9 | latestNotify = $($('.notification__message span').get(0)).text(); | 9 | latestNotify = $($('.notification__message span').get(0)).text(); |
10 | }); | 10 | }); |
11 | 11 | ||
@@ -22,7 +22,7 @@ module.exports = (Ferdi) => { | |||
22 | } | 22 | } |
23 | 23 | ||
24 | Ferdi.setBadge(reply, unread); | 24 | Ferdi.setBadge(reply, unread); |
25 | } | 25 | }; |
26 | 26 | ||
27 | Ferdi.loop(getMessages); | 27 | Ferdi.loop(getMessages); |
28 | }; | 28 | }; |