diff options
author | 2022-04-18 06:51:50 -0500 | |
---|---|---|
committer | 2022-04-18 06:51:50 -0500 | |
commit | 18801ed0c02627e87639dc0848cab44dacc18be2 (patch) | |
tree | 15e56ba66c68bf7b4594e6c9fdef44e037b4be31 /recipes/tweetdeck/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/tweetdeck/webview.js')
-rw-r--r-- | recipes/tweetdeck/webview.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes/tweetdeck/webview.js b/recipes/tweetdeck/webview.js index 7f99509..7e2a067 100644 --- a/recipes/tweetdeck/webview.js +++ b/recipes/tweetdeck/webview.js | |||
@@ -1,6 +1,6 @@ | |||
1 | module.exports = Ferdi => { | 1 | module.exports = Ferdium => { |
2 | // Tweetdeck redirect fix | 2 | // Tweetdeck redirect fix |
3 | Ferdi.ipcRenderer.on('redirect-url', (event, url) => { | 3 | Ferdium.ipcRenderer.on('redirect-url', (event, url) => { |
4 | window.location.assign(url); | 4 | window.location.assign(url); |
5 | }); | 5 | }); |
6 | 6 | ||
@@ -8,11 +8,11 @@ module.exports = Ferdi => { | |||
8 | const elements = document.querySelectorAll('.msg-unread-count'); | 8 | const elements = document.querySelectorAll('.msg-unread-count'); |
9 | let count = 0; | 9 | let count = 0; |
10 | if (elements[0]) { | 10 | if (elements[0]) { |
11 | count = Ferdi.safeParseInt(elements[0].textContent); | 11 | count = Ferdium.safeParseInt(elements[0].textContent); |
12 | } | 12 | } |
13 | 13 | ||
14 | Ferdi.setBadge(count); | 14 | Ferdium.setBadge(count); |
15 | }; | 15 | }; |
16 | 16 | ||
17 | Ferdi.loop(getMessages); | 17 | Ferdium.loop(getMessages); |
18 | }; | 18 | }; |