aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/tweetdeck/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/tweetdeck/webview.js')
-rw-r--r--recipes/tweetdeck/webview.js10
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 @@
1module.exports = Ferdi => { 1module.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};