diff options
author | Vijay A <avijayr@protonmail.com> | 2021-06-20 11:08:00 +0530 |
---|---|---|
committer | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-06-20 05:47:40 +0000 |
commit | 8a0971ff9f41fdaa1af15e88740ce9479e1ec6ea (patch) | |
tree | dbbc5d0bf44f56a1024eae1d9799c47853401e0d /recipes/teamleader/webview.js | |
parent | Renamed 'glowingbear' --> 'glowing-bear' and 'ex-google-voice' --> 'google-vo... (diff) | |
download | ferdium-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/teamleader/webview.js')
-rw-r--r-- | recipes/teamleader/webview.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/teamleader/webview.js b/recipes/teamleader/webview.js new file mode 100644 index 0000000..303a938 --- /dev/null +++ b/recipes/teamleader/webview.js | |||
@@ -0,0 +1,13 @@ | |||
1 | const path = require('path'); | ||
2 | |||
3 | module.exports = (Franz, options) => { | ||
4 | const getMessages = () => { | ||
5 | const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); | ||
6 | |||
7 | Franz.setBadge(unreadNotifications); | ||
8 | } | ||
9 | |||
10 | Franz.loop(getMessages); | ||
11 | |||
12 | Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); | ||
13 | }; \ No newline at end of file | ||