blob: b37b9e4eff4310ca6f675e67a0fe79a5de07c4eb (
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 totalMessages = document.querySelector('#app_0 > div.app_counter').innerHTML;
Ferdium.setBadge(totalMessages);
};
Ferdium.loop(getMessages);
Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
};
|