aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/air-droid/webview.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-06-20 11:08:00 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-06-20 05:47:40 +0000
commit8a0971ff9f41fdaa1af15e88740ce9479e1ec6ea (patch)
treedbbc5d0bf44f56a1024eae1d9799c47853401e0d /recipes/air-droid/webview.js
parentRenamed 'glowingbear' --> 'glowing-bear' and 'ex-google-voice' --> 'google-vo... (diff)
downloadferdium-recipes-8a0971ff9f41fdaa1af15e88740ce9479e1ec6ea.tar.gz
ferdium-recipes-8a0971ff9f41fdaa1af15e88740ce9479e1ec6ea.tar.zst
ferdium-recipes-8a0971ff9f41fdaa1af15e88740ce9479e1ec6ea.zip
Added new services
- 'air-droid' - 'basecamp' - 'box' - 'buffer' - 'chatra' - 'easy-redmine' - 'feedbin' - 'iCloud' - 'jollor' - 'nomadlist' - 'paymo' - 'pivotal-tracker' - 'plan' - 'podio' - 'protonet' - 'teamleader'
Diffstat (limited to 'recipes/air-droid/webview.js')
-rw-r--r--recipes/air-droid/webview.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/recipes/air-droid/webview.js b/recipes/air-droid/webview.js
new file mode 100644
index 0000000..a544be5
--- /dev/null
+++ b/recipes/air-droid/webview.js
@@ -0,0 +1,14 @@
1module.exports = (Franz, options) => {
2 function getMessages() {
3 const count = {};
4 const FranzData = document.querySelector('#FranzMessages').dataset;
5 if (FranzData) {
6 count.count = FranzData.direct;
7 count.count_indirect = FranzData.indirect;
8 }
9
10 Franz.setBadge(count);
11 }
12
13 Franz.loop(getMessages);
14}