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

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

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

    Ferdium.loop(updateBadge);
};