blob: b7589de2f74287aaf897eebec8d3c8cdd6c7e50c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
"use strict";
var _path = _interopRequireDefault(require("path"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {default: obj};
}
module.exports = Franz => {
const getMessages = function getMessages() {
const direct = document.querySelectorAll(
'.notifications .notification-container .notification-wrapper li .notification'
).length;
Franz.setBadge(direct);
};
Franz.loop(getMessages);
};
|