aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/udemy
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/udemy')
-rw-r--r--recipes/udemy/package.json2
-rw-r--r--recipes/udemy/webview.js18
2 files changed, 14 insertions, 6 deletions
diff --git a/recipes/udemy/package.json b/recipes/udemy/package.json
index 763ed5d..4af1525 100644
--- a/recipes/udemy/package.json
+++ b/recipes/udemy/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "udemy", 2 "id": "udemy",
3 "name": "Udemy", 3 "name": "Udemy",
4 "version": "1.1.0", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "repository": "https://github.com/gaspergrom/Franz-services/tree/master/udemy", 6 "repository": "https://github.com/gaspergrom/Franz-services/tree/master/udemy",
7 "config": { 7 "config": {
diff --git a/recipes/udemy/webview.js b/recipes/udemy/webview.js
index 02b9c08..1d7ff56 100644
--- a/recipes/udemy/webview.js
+++ b/recipes/udemy/webview.js
@@ -1,9 +1,17 @@
1module.exports = (Ferdium) => { 1function _interopRequireDefault(obj) {
2 return obj && obj.__esModule ? obj : { default: obj };
3}
4
5const _path = _interopRequireDefault(require('path'));
6
7module.exports = Ferdium => {
2 const getMessages = () => { 8 const getMessages = () => {
3 let direct = 0; 9 const direct = 0;
4 let indirect = 0; 10 const indirect = 0;
5 Ferdium.setBadge(direct, indirect); 11 Ferdium.setBadge(direct, indirect);
6 } 12 };
7 13
8 Ferdium.loop(getMessages); 14 Ferdium.loop(getMessages);
9} 15
16 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
17};