diff options
author | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-07-31 15:28:23 +0530 |
commit | 97697e3d069972844b2912a93022f4a4904a40d6 (patch) | |
tree | 53faff30fbac9d72042f593dfe1c547809f4f121 /recipes/teamleader/webview.js | |
parent | Allow any url in the custom-service to allow for sites like 'http://translate... (diff) | |
download | ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.gz ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.tar.zst ferdium-recipes-97697e3d069972844b2912a93022f4a4904a40d6.zip |
Fixed eslintrc as root for this folder; Reformatted all files.
Diffstat (limited to 'recipes/teamleader/webview.js')
-rw-r--r-- | recipes/teamleader/webview.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/recipes/teamleader/webview.js b/recipes/teamleader/webview.js index 303a938..2de8e1c 100644 --- a/recipes/teamleader/webview.js +++ b/recipes/teamleader/webview.js | |||
@@ -1,13 +1,13 @@ | |||
1 | const path = require('path'); | 1 | const path = require('path'); |
2 | 2 | ||
3 | module.exports = (Franz, options) => { | 3 | module.exports = (Franz, options) => { |
4 | const getMessages = () => { | 4 | const getMessages = () => { |
5 | const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); | 5 | const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); |
6 | 6 | ||
7 | Franz.setBadge(unreadNotifications); | 7 | Franz.setBadge(unreadNotifications); |
8 | } | 8 | }; |
9 | 9 | ||
10 | Franz.loop(getMessages); | 10 | Franz.loop(getMessages); |
11 | 11 | ||
12 | Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); | 12 | Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); |
13 | }; \ No newline at end of file | 13 | }; |