aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/clockify/webview.js
diff options
context:
space:
mode:
authorLibravatar kytwb <kytwb@pm.me>2021-03-24 21:51:03 +0100
committerLibravatar kytwb <kytwb@pm.me>2021-03-24 21:51:03 +0100
commit30a759f889b5adc93369a937c5d8634183bba874 (patch)
treed7729ee72410d3cde9099ec434587f8cddc06d1d /recipes/clockify/webview.js
parentBump is-svg from 4.2.1 to 4.3.1 (#454) (diff)
downloadferdium-recipes-30a759f889b5adc93369a937c5d8634183bba874.tar.gz
ferdium-recipes-30a759f889b5adc93369a937c5d8634183bba874.tar.zst
ferdium-recipes-30a759f889b5adc93369a937c5d8634183bba874.zip
Move clockify recipe in the right folder
Diffstat (limited to 'recipes/clockify/webview.js')
-rw-r--r--recipes/clockify/webview.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/clockify/webview.js b/recipes/clockify/webview.js
new file mode 100644
index 0000000..5aab471
--- /dev/null
+++ b/recipes/clockify/webview.js
@@ -0,0 +1,11 @@
1"use strict";
2
3module.exports = Franz => {
4 const getMessages = function getMessages() {
5 const notifications = document.querySelectorAll('.notification--number');
6
7 Franz.setBadge(0, notifications.length >= 1 ? 1 : 0);
8 };
9
10 Franz.loop(getMessages);
11}; \ No newline at end of file