blob: 2c53f1da86ae6a413a843298a8733740ec5a913f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
"use strict";
var _path = _interopRequireDefault(require("path"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = Ferdi => {
const getMessages = function getMessages() {
const unread = document.querySelectorAll('.header__bell-wrapper_unread');
Ferdi.setBadge(unread.length>0 ? 1 : 0);
};
Ferdi.loop(getMessages);
};
|