aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/xing/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-27 18:13:24 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-27 18:13:24 +0530
commit155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch)
treed144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/xing/webview.js
parentdocs: fixed template file for creating recipe. (diff)
downloadferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.gz
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.tar.zst
ferdium-recipes-155c4b832281348c16be1f4ef667e6e23dbf1bd8.zip
chore: normalized all recipes to ensure compatibility with es6 (#639)
- Removed some calls to set badge with '0' all the time. - Removed all 'sourceMaps' since they are all outdated atm.
Diffstat (limited to 'recipes/xing/webview.js')
-rw-r--r--recipes/xing/webview.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/recipes/xing/webview.js b/recipes/xing/webview.js
index 1cdf7cb..97daed2 100644
--- a/recipes/xing/webview.js
+++ b/recipes/xing/webview.js
@@ -1,11 +1,10 @@
1module.exports = Franz => { 1module.exports = Ferdi => {
2 function getUnreadConversations() { 2 function getUnreadConversations() {
3 let unreadConversations = 0; 3 let unreadConversations = 0;
4 unreadConversations = parseInt(document.querySelector('#unread-conversations').innerHTML, 10); 4 unreadConversations = parseInt(document.querySelector('#unread-conversations').innerHTML, 10);
5 5
6 Franz.setBadge(unreadConversations); 6 Ferdi.setBadge(unreadConversations);
7 } 7 }
8 8
9 Franz.loop(getUnreadConversations); 9 Ferdi.loop(getUnreadConversations);
10}; 10};
11// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInhpbmcvd2Vidmlldy5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRVbnJlYWRDb252Z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