aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/telegram
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-08-27 18:13:24 +0530
committerLibravatar GitHub <noreply@github.com>2021-08-27 18:13:24 +0530
commit155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch)
treed144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/telegram
parentdocs: fixed template file for creating recipe. (diff)
downloadferdium-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/telegram')
-rw-r--r--recipes/telegram/index.js3
-rw-r--r--recipes/telegram/package.json2
-rw-r--r--recipes/telegram/webview.js13
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 @@
1module.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
3const path = require('path'); 3const _path = _interopRequireDefault(require('path'));
4 4
5module.exports = Franz => { 5function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6
7module.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};