aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Feiko Joosten <feiko_joosten@hotmail.com>2020-04-21 21:35:57 +0200
committerLibravatar GitHub <noreply@github.com>2020-04-21 19:35:57 +0000
commit0f49db845a6b697739357beec7825714e56f252c (patch)
tree461fbdd46fc9a3f3c5ab56ab25b0cd8f4cec0aa1
parentFixes notifications for WhatsApp (#120) (diff)
downloadferdium-recipes-0f49db845a6b697739357beec7825714e56f252c.tar.gz
ferdium-recipes-0f49db845a6b697739357beec7825714e56f252c.tar.zst
ferdium-recipes-0f49db845a6b697739357beec7825714e56f252c.zip
Adds notifications for GitHub (#129)
* Added notifications for github. * Changed the notification count to use indirect notifications Changed the notification count to use indirect notifications instead of direct notifications
-rw-r--r--all.json2
-rw-r--r--archives/github.tar.gzbin34792 -> 34833 bytes
-rw-r--r--uncompressed/github/package.json7
-rw-r--r--uncompressed/github/webview.js8
4 files changed, 14 insertions, 3 deletions
diff --git a/all.json b/all.json
index 1d4a784..9a66d88 100644
--- a/all.json
+++ b/all.json
@@ -191,7 +191,7 @@
191 "featured": false, 191 "featured": false,
192 "id": "github", 192 "id": "github",
193 "name": "GitHub", 193 "name": "GitHub",
194 "version": "1.0.1", 194 "version": "1.0.3",
195 "icons": { 195 "icons": {
196 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/github/icon.png", 196 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/github/icon.png",
197 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/github/icon.svg" 197 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/github/icon.svg"
diff --git a/archives/github.tar.gz b/archives/github.tar.gz
index 0800001..c60e5f2 100644
--- a/archives/github.tar.gz
+++ b/archives/github.tar.gz
Binary files differ
diff --git a/uncompressed/github/package.json b/uncompressed/github/package.json
index b9e329c..ca82897 100644
--- a/uncompressed/github/package.json
+++ b/uncompressed/github/package.json
@@ -1,12 +1,15 @@
1{ 1{
2 "id": "github", 2 "id": "github",
3 "name": "GitHub", 3 "name": "GitHub",
4 "version": "1.0.1", 4 "version": "1.0.3",
5 "description": "GitHub", 5 "description": "GitHub",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Sudhir Ganesan", 7 "author": "Sudhir Ganesan",
8 "license": "MIT", 8 "license": "MIT",
9 "config": { 9 "config": {
10 "serviceURL": "https://github.com/" 10 "serviceURL": "https://github.com/",
11 "hasNotificationSound": false,
12 "hasDirectMessages": false,
13 "hasIndirectMessages": true
11 } 14 }
12} 15}
diff --git a/uncompressed/github/webview.js b/uncompressed/github/webview.js
index 0cd6361..0543d1f 100644
--- a/uncompressed/github/webview.js
+++ b/uncompressed/github/webview.js
@@ -1,2 +1,10 @@
1"use strict"; 1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 Franz.setBadge(document.querySelector('[class*="mail-status unread"]') !== null ? 1 : 0);
6 };
7
8 Franz.loop(0, getMessages);
9}
2//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJnaXRodWIvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0= \ No newline at end of file 10//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJnaXRodWIvd2Vidmlldy5qcyIsInNvdXJjZXNDb250ZW50IjpbXX0= \ No newline at end of file