diff options
Diffstat (limited to 'uncompressed/grape/webview.js')
-rw-r--r-- | uncompressed/grape/webview.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/uncompressed/grape/webview.js b/uncompressed/grape/webview.js new file mode 100644 index 0000000..46fa1f7 --- /dev/null +++ b/uncompressed/grape/webview.js | |||
@@ -0,0 +1,13 @@ | |||
1 | 'use strict'; | ||
2 | |||
3 | module.exports = Franz => { | ||
4 | const getMessages = function getMessages() { | ||
5 | const directMessages = document.querySelectorAll('.c0120').length; | ||
6 | const indirectMessages = document.querySelectorAll('.c0121').length; | ||
7 | |||
8 | Franz.setBadge(directMessages, indirectMessages); | ||
9 | }; | ||
10 | |||
11 | Franz.loop(getMessages); | ||
12 | }; | ||
13 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImdyYXBlL3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJkaXJlY3RNZXNzYWdlcyIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsImxlbmd0aCIsImluZGlyZWN0TWVzc2FnZXMiLCJzZXRCYWRnZSIsImxvb3AiXSwibWFwcGluZ3MiOiI7O0FBQUFBLE9BQU9DLE9BQVAsR0FBa0JDLEtBQUQsSUFBVztBQUMxQixRQUFNQyxjQUFjLFNBQVNBLFdBQVQsR0FBdUI7QUFDekMsVUFBTUMsaUJBQWlCQyxTQUFTQyxnQkFBVCxDQUEwQixRQUExQixFQUFvQ0MsTUFBM0Q7QUFDQSxVQUFNQyxtQkFBbUJILFNBQVNDLGdCQUFULENBQTBCLFFBQTFCLEVBQW9DQyxNQUE3RDs7QUFFQUwsVUFBTU8sUUFBTixDQUFlTCxjQUFmLEVBQStCSSxnQkFBL0I7QUFDRCxHQUxEOztBQU9BTixRQUFNUSxJQUFOLENBQVdQLFdBQVg7QUFDRCxDQVREIiwiZml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