aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/github
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/github
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/github')
-rw-r--r--recipes/github/index.js3
-rw-r--r--recipes/github/package.json2
-rw-r--r--recipes/github/webview.js7
3 files changed, 5 insertions, 7 deletions
diff --git a/recipes/github/index.js b/recipes/github/index.js
index 6889e69..23607bd 100644
--- a/recipes/github/index.js
+++ b/recipes/github/index.js
@@ -1,2 +1 @@
1module.exports = Franz => Franz; module.exports = Ferdi => Ferdi;
2// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdpdGh1Yi9pbmRleC5qcyJdLCJuYW1lcyI6WyJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBaUJDLFNBQVNBLEtBQTFCIiwiZmlsZSI6ImdpdGh1Yi9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gRnJhbnogPT4gRnJhbno7XG4iXX0=
diff --git a/recipes/github/package.json b/recipes/github/package.json
index 49d18d8..4454c97 100644
--- a/recipes/github/package.json
+++ b/recipes/github/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "github", 2 "id": "github",
3 "name": "GitHub", 3 "name": "GitHub",
4 "version": "2.0.2", 4 "version": "2.1.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://github.com/notifications", 7 "serviceURL": "https://github.com/notifications",
diff --git a/recipes/github/webview.js b/recipes/github/webview.js
index 3b5a286..9f35b5e 100644
--- a/recipes/github/webview.js
+++ b/recipes/github/webview.js
@@ -1,4 +1,4 @@
1module.exports = Franz => { 1module.exports = Ferdi => {
2 const getMessages = function getMessages() { 2 const getMessages = function getMessages() {
3 const directCountElement = document.querySelector('.filter-list .count'); 3 const directCountElement = document.querySelector('.filter-list .count');
4 const indirectCountElement = document.querySelector('[class*="mail-status unread"]'); 4 const indirectCountElement = document.querySelector('[class*="mail-status unread"]');
@@ -9,9 +9,8 @@ module.exports = Franz => {
9 } else if (indirectCountElement) { 9 } else if (indirectCountElement) {
10 indirectCount = 1; 10 indirectCount = 1;
11 } 11 }
12 Franz.setBadge(directCount, indirectCount); 12 Ferdi.setBadge(directCount, indirectCount);
13 }; 13 };
14 14
15 Franz.loop(getMessages); 15 Ferdi.loop(getMessages);
16}; 16};
17// # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJnaXRodWIvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0=