diff options
Diffstat (limited to 'recipes/pivotal-tracker/webview.js')
-rw-r--r-- | recipes/pivotal-tracker/webview.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/recipes/pivotal-tracker/webview.js b/recipes/pivotal-tracker/webview.js new file mode 100644 index 0000000..a550492 --- /dev/null +++ b/recipes/pivotal-tracker/webview.js | |||
@@ -0,0 +1,13 @@ | |||
1 | module.exports = (Franz, options) => { | ||
2 | |||
3 | function getMessages() { | ||
4 | var bell = document.querySelectorAll("#view65 > span")[0]; | ||
5 | |||
6 | counter = parseInt(bell.innerText); | ||
7 | |||
8 | Franz.setBadge(counter); | ||
9 | }; | ||
10 | |||
11 | Franz.loop(getMessages); | ||
12 | |||
13 | } | ||