diff options
Diffstat (limited to 'recipes/telegram')
-rw-r--r-- | recipes/telegram/index.js | 3 | ||||
-rw-r--r-- | recipes/telegram/package.json | 2 | ||||
-rw-r--r-- | recipes/telegram/webview.js | 13 |
3 files changed, 10 insertions, 8 deletions
diff --git a/recipes/telegram/index.js b/recipes/telegram/index.js index ac3e6f0..23607bd 100644 --- a/recipes/telegram/index.js +++ b/recipes/telegram/index.js | |||
@@ -1,2 +1 @@ | |||
1 | module.exports = Franz => Franz; | module.exports = Ferdi => Ferdi; | |
2 | // # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlbGVncmFtL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoidGVsZWdyYW0vaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 | ||
diff --git a/recipes/telegram/package.json b/recipes/telegram/package.json index ee90470..47e53f0 100644 --- a/recipes/telegram/package.json +++ b/recipes/telegram/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "telegram", | 2 | "id": "telegram", |
3 | "name": "Telegram", | 3 | "name": "Telegram", |
4 | "version": "3.1.1", | 4 | "version": "3.2.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://web.telegram.org", | 7 | "serviceURL": "https://web.telegram.org", |
diff --git a/recipes/telegram/webview.js b/recipes/telegram/webview.js index db8c8d7..bf9ffec 100644 --- a/recipes/telegram/webview.js +++ b/recipes/telegram/webview.js | |||
@@ -1,8 +1,10 @@ | |||
1 | // Code copied from: https://gitlab.com/gortega4/ferdi_recipes | 1 | // Code copied from: https://gitlab.com/gortega4/ferdi_recipes |
2 | 2 | ||
3 | const path = require('path'); | 3 | const _path = _interopRequireDefault(require('path')); |
4 | 4 | ||
5 | module.exports = Franz => { | 5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
6 | |||
7 | module.exports = Ferdi => { | ||
6 | const getMessages = function getMessages() { | 8 | const getMessages = function getMessages() { |
7 | let count = 0; | 9 | let count = 0; |
8 | let count_sec = 0; | 10 | let count_sec = 0; |
@@ -21,9 +23,10 @@ module.exports = Franz => { | |||
21 | } | 23 | } |
22 | } | 24 | } |
23 | 25 | ||
24 | Franz.setBadge(count, count_sec); | 26 | Ferdi.setBadge(count, count_sec); |
25 | }; | 27 | }; |
26 | 28 | ||
27 | Franz.injectCSS(path.join(__dirname, 'service.css')); | 29 | Ferdi.loop(getMessages); |
28 | Franz.loop(getMessages); | 30 | |
31 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
29 | }; | 32 | }; |