diff options
author | 2020-03-12 18:13:19 +0000 | |
---|---|---|
committer | 2020-03-12 19:13:19 +0100 | |
commit | 76dbe652e801bbf85f28b433e228754e30bcddf5 (patch) | |
tree | a6561ee315a450ec24d1a07613db8609a3553806 /uncompressed/unraid/webview.js | |
parent | Repackage asana (diff) | |
download | ferdium-recipes-76dbe652e801bbf85f28b433e228754e30bcddf5.tar.gz ferdium-recipes-76dbe652e801bbf85f28b433e228754e30bcddf5.tar.zst ferdium-recipes-76dbe652e801bbf85f28b433e228754e30bcddf5.zip |
Add Unraid + Netatmo Energy recipes (#65)
* Add Unraid plugin
* Add Netatmo Energy plugin
* Update plugins based on requests
* Resolve issues
Diffstat (limited to 'uncompressed/unraid/webview.js')
-rw-r--r-- | uncompressed/unraid/webview.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/uncompressed/unraid/webview.js b/uncompressed/unraid/webview.js new file mode 100644 index 0000000..38695da --- /dev/null +++ b/uncompressed/unraid/webview.js | |||
@@ -0,0 +1,11 @@ | |||
1 | module.exports = (Franz) => { | ||
2 | |||
3 | const getMessages = () => { | ||
4 | const messages = $('#jGrowl .jGrowl-notify').length; | ||
5 | |||
6 | Franz.setBadge(messages - 1); | ||
7 | } | ||
8 | |||
9 | Franz.loop(getMessages); | ||
10 | |||
11 | }; \ No newline at end of file | ||