diff options
Diffstat (limited to 'recipes/telegram/webview.js')
-rw-r--r-- | recipes/telegram/webview.js | 13 |
1 files changed, 8 insertions, 5 deletions
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 | }; |