diff options
author | 2021-08-27 18:13:24 +0530 | |
---|---|---|
committer | 2021-08-27 18:13:24 +0530 | |
commit | 155c4b832281348c16be1f4ef667e6e23dbf1bd8 (patch) | |
tree | d144e2de2e6c7fb2e334246e8a4aecdbeb08ef8d /recipes/tweetdeck | |
parent | docs: fixed template file for creating recipe. (diff) | |
download | ferdium-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/tweetdeck')
-rw-r--r-- | recipes/tweetdeck/index.js | 3 | ||||
-rw-r--r-- | recipes/tweetdeck/package.json | 2 | ||||
-rw-r--r-- | recipes/tweetdeck/webview.js | 8 |
3 files changed, 6 insertions, 7 deletions
diff --git a/recipes/tweetdeck/index.js b/recipes/tweetdeck/index.js index 1326a29..3dc2463 100644 --- a/recipes/tweetdeck/index.js +++ b/recipes/tweetdeck/index.js | |||
@@ -1,4 +1,4 @@ | |||
1 | module.exports = Franz => class Tweetdeck extends Franz { | 1 | module.exports = Ferdi => class Tweetdeck extends Ferdi { |
2 | constructor(...args) { | 2 | constructor(...args) { |
3 | let _temp; | 3 | let _temp; |
4 | 4 | ||
@@ -14,4 +14,3 @@ module.exports = Franz => class Tweetdeck extends Franz { | |||
14 | } | 14 | } |
15 | } | 15 | } |
16 | }; | 16 | }; |
17 | // # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInR3ZWV0ZGVjay9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJUd2VldGRlY2siLCJldmVudHMiLCJfcmVkaXJlY3RGaXgiLCJldmVudCIsIm5ld1VSTCIsIn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ChldmVudC5pc01haW5GcmFtZSkge1xuICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHRoaXMuc2VuZCgncmVkaXJlY3QtdXJsJywgZXZlbnQubmV3VVJMKSwgMTAwKTtcbiAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgIH1cbiAgICB9XG4gIH1cbn07XG4iXX0= | ||
diff --git a/recipes/tweetdeck/package.json b/recipes/tweetdeck/package.json index 77492b3..d564962 100644 --- a/recipes/tweetdeck/package.json +++ b/recipes/tweetdeck/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "tweetdeck", | 2 | "id": "tweetdeck", |
3 | "name": "Tweetdeck", | 3 | "name": "Tweetdeck", |
4 | "version": "1.0.5", | 4 | "version": "1.1.0", |
5 | "license": "MIT", | 5 | "license": "MIT", |
6 | "config": { | 6 | "config": { |
7 | "serviceURL": "https://tweetdeck.twitter.com/", | 7 | "serviceURL": "https://tweetdeck.twitter.com/", |
diff --git a/recipes/tweetdeck/webview.js b/recipes/tweetdeck/webview.js index 75c7948..158f767 100644 --- a/recipes/tweetdeck/webview.js +++ b/recipes/tweetdeck/webview.js | |||
@@ -5,7 +5,7 @@ ipcRenderer.on('redirect-url', (event, url) => { | |||
5 | window.location.assign(url); | 5 | window.location.assign(url); |
6 | }); | 6 | }); |
7 | 7 | ||
8 | module.exports = Franz => { | 8 | module.exports = Ferdi => { |
9 | const getMessages = function getMessages() { | 9 | const getMessages = function getMessages() { |
10 | const elements = document.querySelectorAll('.msg-unread-count'); | 10 | const elements = document.querySelectorAll('.msg-unread-count'); |
11 | let count = 0; | 11 | let count = 0; |
@@ -13,8 +13,8 @@ module.exports = Franz => { | |||
13 | count = parseInt(elements[0].innerHTML, 10); | 13 | count = parseInt(elements[0].innerHTML, 10); |
14 | } | 14 | } |
15 | 15 | ||
16 | Franz.setBadge(count); | 16 | Ferdi.setBadge(count); |
17 | }; | 17 | }; |
18 | Franz.loop(getMessages); | 18 |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