blob: 24a963d6a9f456e05520d78ef4a461ef9b9b9d97 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
const _path = _interopRequireDefault(require('path'));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
module.exports = Ferdium => {
const getMessages = () => {
const count = document.querySelector(
'.user-menu-message-item-count',
).textContent;
Ferdium.setBadge(count);
};
Ferdium.loop(getMessages);
Ferdium.injectCSS(_path.default.join(__dirname, 'css', 'franz.css'));
};
|