diff options
author | 2021-08-27 18:13:24 +0530 | |
---|---|---|
committer | 2021-08-27 18:13:24 +0530 | |
commit | 155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch) | |
tree | d144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/teamleader/webview.js | |
parent | docs: fixed template file for creating recipe. (diff) | |
download | ferdium-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/teamleader/webview.js')
-rw-r--r-- | recipes/teamleader/webview.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/recipes/teamleader/webview.js b/recipes/teamleader/webview.js index 2de8e1c..3041463 100644 --- a/recipes/teamleader/webview.js +++ b/recipes/teamleader/webview.js | |||
@@ -1,13 +1,14 @@ | |||
1 | const path = require('path'); | 1 | const _path = _interopRequireDefault(require('path')); |
2 | 2 | ||
3 | module.exports = (Franz, options) => { | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
4 | |||
5 | module.exports = (Ferdi) => { | ||
4 | const getMessages = () => { | 6 | const getMessages = () => { |
5 | const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); | 7 | const unreadNotifications = parseInt(document.getElementById('notifications_amount').innerHTML); |
6 | 8 | Ferdi.setBadge(unreadNotifications); | |
7 | Franz.setBadge(unreadNotifications); | ||
8 | }; | 9 | }; |
9 | 10 | ||
10 | Franz.loop(getMessages); | 11 | Ferdi.loop(getMessages); |
11 | 12 | ||
12 | Franz.injectCSS(path.join(__dirname, 'css', 'franz.css')); | 13 | Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'franz.css')); |
13 | }; | 14 | }; |