blob: 5474b2c41d9f6ac2b337c30f21831de5de88af48 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
const _path = _interopRequireDefault(require('path'));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
module.exports = Ferdium => {
const getMessages = () => {
const count = document.querySelectorAll('.unconsumed-badge').length;
// set Ferdium badge
Ferdium.setBadge(count);
};
Ferdium.loop(getMessages);
Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
};
|