aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/teamleader/webview.js
blob: 7eff4141556cd5d021608daaa538c24e8ff06f0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
const _path = _interopRequireDefault(require('path'));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

module.exports = (Ferdi) => {
  const getMessages = () => {
    Ferdi.setBadge(document.getElementById('notifications_amount').innerHTML);
  };

  Ferdi.loop(getMessages);

  Ferdi.injectCSS(_path.default.join(__dirname, 'css', 'franz.css'));
};