diff options
author | 2020-04-21 21:35:57 +0200 | |
---|---|---|
committer | 2020-04-21 19:35:57 +0000 | |
commit | 0f49db845a6b697739357beec7825714e56f252c (patch) | |
tree | 461fbdd46fc9a3f3c5ab56ab25b0cd8f4cec0aa1 /uncompressed/github | |
parent | Fixes notifications for WhatsApp (#120) (diff) | |
download | ferdium-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/github')
-rw-r--r-- | uncompressed/github/package.json | 7 | ||||
-rw-r--r-- | uncompressed/github/webview.js | 8 |
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 | |||
3 | module.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 |