diff options
Diffstat (limited to 'recipes/irccloud')
-rw-r--r-- | recipes/irccloud/index.js | 4 | ||||
-rw-r--r-- | recipes/irccloud/webview.js | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/recipes/irccloud/index.js b/recipes/irccloud/index.js index c72c98f..45d4144 100644 --- a/recipes/irccloud/index.js +++ b/recipes/irccloud/index.js | |||
@@ -1,4 +1,2 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | module.exports = Franz => Franz; | 1 | module.exports = Franz => Franz; |
4 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlyY2Nsb3VkL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiaXJjY2xvdWQvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 \ No newline at end of file | 2 | // # sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlyY2Nsb3VkL2luZGV4LmpzIl0sIm5hbWVzIjpbIm1vZHVsZSIsImV4cG9ydHMiLCJGcmFueiJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFpQkMsU0FBU0EsS0FBMUIiLCJmaWxlIjoiaXJjY2xvdWQvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IEZyYW56ID0+IEZyYW56O1xuIl19 |
diff --git a/recipes/irccloud/webview.js b/recipes/irccloud/webview.js index de57ffd..1e98d4f 100644 --- a/recipes/irccloud/webview.js +++ b/recipes/irccloud/webview.js | |||
@@ -1,15 +1,13 @@ | |||
1 | "use strict"; | ||
2 | |||
3 | const path = require('path'); | 1 | const path = require('path'); |
4 | 2 | ||
5 | module.exports = Franz => { | 3 | module.exports = Franz => { |
6 | const getMessages = function getMessages() { | 4 | const getMessages = function getMessages() { |
7 | var directMessages = document.getElementsByClassName("buffer conversation active unread activeBadge").length; | 5 | const directMessages = document.getElementsByClassName('buffer conversation active unread activeBadge').length; |
8 | var indirectMessages = document.getElementsByClassName("buffer channel active unread").length; | 6 | const indirectMessages = document.getElementsByClassName('buffer channel active unread').length; |
9 | 7 | ||
10 | Franz.setBadge(directMessages, indirectMessages); | 8 | Franz.setBadge(directMessages, indirectMessages); |
11 | }; | 9 | }; |
12 | 10 | ||
13 | Franz.loop(getMessages); | 11 | Franz.loop(getMessages); |
14 | }; | 12 | }; |
15 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImlyY2Nsb3VkL3dlYnZpZXcuanMiXSwibmFtZXMiOlsicGF0aCIsInJlcXVpcmUiLCJtb2R1bGUiLCJleHBvcnRzIiwiRnJhbnoiLCJnZXRNZXNzYWdlcyIsImRpcmVjdE1lc3NhZ2VzIiwiZG9jdW1lbnQiLCJnZXRFbGVtZW50c0J5Q2xhc3NOYW1lIiwibGVuZ3RoIiwiaW5kaXJlY3RNZXNzYWdlcyIsInNldEJhZGdlIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQSxNQUFNQSxPQUFPQyxRQUFRLE1BQVIsQ0FBYjs7QUFFQUMsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsU0FBU0EsV0FBVCxHQUF1QjtBQUN6QyxRQUFJQyxpQkFBaUJDLFNBQVNDLHNCQUFULENBQWdDLCtDQUFoQyxFQUFpRkMsTUFBdEc7QUFDQSxRQUFJQyxtQkFBbUJILFNBQVNDLHNCQUFULENBQWdDLDhCQUFoQyxFQUFnRUMsTUFBdkY7O0FBRUFMLFVBQU1PLFFBQ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