aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/toggl/webview.js
blob: 22d5a66b6ad2dfc8ee1653e6ad99a21afc875f18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
function _interopRequireDefault(obj) {
  return obj && obj.__esModule ? obj : { default: obj };
}

const _path = _interopRequireDefault(require('path'));

module.exports = Ferdium => {
  const updateBadge = function updateBadge() {
    Ferdium.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js'));
  };

  Ferdium.loop(updateBadge);
};