diff options
author | 2020-03-08 10:23:51 +0100 | |
---|---|---|
committer | 2020-03-08 10:23:51 +0100 | |
commit | 9a770ced1612e08b6fbacfad0887e803417eeba6 (patch) | |
tree | 399cde7de6aa0ff18ec83e81e0b47e0253a90bda /uncompressed/pulsesms/webview.js | |
parent | Fix differences in recipes (diff) | |
download | ferdium-recipes-9a770ced1612e08b6fbacfad0887e803417eeba6.tar.gz ferdium-recipes-9a770ced1612e08b6fbacfad0887e803417eeba6.tar.zst ferdium-recipes-9a770ced1612e08b6fbacfad0887e803417eeba6.zip |
Re-add PulseSMS with correct casing
Diffstat (limited to 'uncompressed/pulsesms/webview.js')
-rw-r--r-- | uncompressed/pulsesms/webview.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/uncompressed/pulsesms/webview.js b/uncompressed/pulsesms/webview.js new file mode 100644 index 0000000..a4c7f43 --- /dev/null +++ b/uncompressed/pulsesms/webview.js | |||
@@ -0,0 +1,8 @@ | |||
1 | module.exports = (Franz) => { | ||
2 | function getMessages() { | ||
3 | Franz.setBadge(document.querySelector("#unread_count").innerHTML.replace(/\s/g,'')); | ||
4 | } | ||
5 | |||
6 | // check for new messages every second and update Franz badge | ||
7 | Franz.loop(getMessages); | ||
8 | }; | ||