-
Notifications
You must be signed in to change notification settings - Fork 0
/
webview.js
12 lines (9 loc) · 1.13 KB
/
webview.js
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';
module.exports = Franz => {
const getMessages = function getMessages() {
const count = document.querySelectorAll('.switch_pane>.unread').length;
Franz.setBadge(count);
};
Franz.loop(getMessages);
};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInR3aXN0L3dlYnZpZXcuanMiXSwibmFtZXMiOlsibW9kdWxlIiwiZXhwb3J0cyIsIkZyYW56IiwiZ2V0TWVzc2FnZXMiLCJjb3VudCIsImRvY3VtZW50IiwicXVlcnlTZWxlY3RvckFsbCIsImxlbmd0aCIsInNldEJhZGdlIiwibG9vcCJdLCJtYXBwaW5ncyI6Ijs7QUFBQUEsT0FBT0MsT0FBUCxHQUFrQkMsS0FBRCxJQUFXO0FBQzFCLFFBQU1DLGNBQWMsU0FBU0EsV0FBVCxHQUF1QjtBQUN6QyxVQUFNQyxRQUFRQyxTQUFTQyxnQkFBVCxDQUEwQixzQkFBMUIsRUFBa0RDLE1BQWhFOztBQUVBTCxVQUFNTSxRQUFOLENBQWVKLEtBQWY7QUFDRCxHQUpEOztBQU1BRixRQUFNTyxJQUFOLENBQVdOLFdBQVg7QUFDRCxDQVJEIiwiZmlsZSI6InR3aXN0L3dlYnZpZXcuanMiLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IChGcmFueikgPT4ge1xuICBjb25zdCBnZXRNZXNzYWdlcyA9IGZ1bmN0aW9uIGdldE1lc3NhZ2VzKCkge1xuICAgIGNvbnN0IGNvdW50ID0gZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnLnN3aXRjaF9wYW5lPi51bnJlYWQnKS5sZW5ndGg7XG5cbiAgICBGcmFuei5zZXRCYWRnZShjb3VudCk7XG4gIH07XG5cbiAgRnJhbnoubG9vcChnZXRNZXNzYWdlcyk7XG59O1xuIl19