diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-18 06:51:50 -0500 |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/tt-rss/webview.js | |
parent | Remove deprecated webPreference flag (diff) | |
download | ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.gz ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.tar.zst ferdium-recipes-18801ed0c02627e87639dc0848cab44dacc18be2.zip |
Rebranded from 'ferdi' to 'ferdium' (companion changes for the main repo PR #2)
Diffstat (limited to 'recipes/tt-rss/webview.js')
-rw-r--r-- | recipes/tt-rss/webview.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/tt-rss/webview.js b/recipes/tt-rss/webview.js index 1bb700a..3e3a0d3 100644 --- a/recipes/tt-rss/webview.js +++ b/recipes/tt-rss/webview.js | |||
@@ -1,6 +1,6 @@ | |||
1 | "use strict"; | 1 | "use strict"; |
2 | 2 | ||
3 | module.exports = Ferdi => { | 3 | module.exports = Ferdium => { |
4 | const getMessages = function getMessages() { | 4 | const getMessages = function getMessages() { |
5 | // Initialize empty vars | 5 | // Initialize empty vars |
6 | var unread = 0; | 6 | var unread = 0; |
@@ -10,12 +10,12 @@ module.exports = Ferdi => { | |||
10 | // Some logic to handle the match groups | 10 | // Some logic to handle the match groups |
11 | unread = match != null && match.length > 0 ? match[1] : 0; | 11 | unread = match != null && match.length > 0 ? match[1] : 0; |
12 | // Set unread msgs badge | 12 | // Set unread msgs badge |
13 | Ferdi.setBadge(Number.parseInt(unread, 10)); | 13 | Ferdium.setBadge(Number.parseInt(unread, 10)); |
14 | }; | 14 | }; |
15 | 15 | ||
16 | const loopFunc = () => { | 16 | const loopFunc = () => { |
17 | getMessages(); | 17 | getMessages(); |
18 | }; | 18 | }; |
19 | 19 | ||
20 | Ferdi.loop(loopFunc); | 20 | Ferdium.loop(loopFunc); |
21 | }; | 21 | }; |