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/webview.js | |
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/webview.js')
-rw-r--r-- | uncompressed/github/webview.js | 8 |
1 files changed, 8 insertions, 0 deletions
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 |