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