diff options
Diffstat (limited to 'recipes/teamleader')
-rw-r--r-- | recipes/teamleader/index.js | 2 | ||||
-rw-r--r-- | recipes/teamleader/package.json | 2 | ||||
-rw-r--r-- | recipes/teamleader/webview.js | 13 |
3 files changed, 9 insertions, 8 deletions
diff --git a/recipes/teamleader/index.js b/recipes/teamleader/index.js index 258da41..23607bd 100644 --- a/recipes/teamleader/index.js +++ b/recipes/teamleader/index.js | |||
@@ -1 +1 @@ | |||
module.exports = Franz => Franz; | module.exports = Ferdi => Ferdi; | ||
diff --git a/recipes/teamleader/package.json b/recipes/teamleader/package.json index 08b7e2a..332f28f 100644 --- a/recipes/teamleader/package.json +++ b/recipes/teamleader/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "teamleader", | 2 | "id": "teamleader", |
3 | "name": "teamleader", | 3 | "name": "teamleader", |
4 | "version": "1.0.2", | 4 | "version": "1.1.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://app.teamleader.eu/?gotologin", | 7 | "serviceURL": "https://app.teamleader.eu/?gotologin", |
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 | }; |