aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed
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 /uncompressed
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
Diffstat (limited to 'uncompressed')
-rw-r--r--uncompressed/github/package.json7
-rw-r--r--uncompressed/github/webview.js8
2 files changed, 13 insertions, 2 deletions
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