diff options
Diffstat (limited to 'recipes/riseup/webview.js')
-rw-r--r-- | recipes/riseup/webview.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/recipes/riseup/webview.js b/recipes/riseup/webview.js index 705a0ba..79b4a7b 100644 --- a/recipes/riseup/webview.js +++ b/recipes/riseup/webview.js | |||
@@ -1,15 +1,13 @@ | |||
1 | "use strict"; | 1 | const _path = _interopRequireDefault(require('path')); |
2 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | 2 | ||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | 3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
6 | 4 | ||
7 | module.exports = Ferdi => { | 5 | module.exports = Ferdi => { |
8 | const getMessages = function getMessages() { | 6 | const getMessages = function getMessages() { |
9 | var unread = 0 | 7 | let unread = 0; |
10 | const notificationBadge = document.getElementsByClassName('unreadcount')[0] | 8 | const notificationBadge = document.getElementsByClassName('unreadcount')[0]; |
11 | if (notificationBadge != undefined) { | 9 | if (notificationBadge != undefined) { |
12 | unread = notificationBadge.innerText; | 10 | unread = notificationBadge.innerText; |
13 | } | 11 | } |
14 | Ferdi.setBadge(parseInt(unread, 10)); | 12 | Ferdi.setBadge(parseInt(unread, 10)); |
15 | }; | 13 | }; |