blob: e760af8e2f5ed27e8886d92bf105ee2ae64532be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
const _path = _interopRequireDefault(require('path'));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = Ferdi => {
const getMessages = function getMessages() {
// Count number of conversations or teams with unread messages
const count = document.querySelectorAll('.unread-count').length;
Ferdi.setBadge(count, 0);
};
Ferdi.loop(getMessages);
Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
};
|