diff options
Diffstat (limited to 'recipes/toggl/webview.js')
-rw-r--r-- | recipes/toggl/webview.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/recipes/toggl/webview.js b/recipes/toggl/webview.js index 23607bd..199700a 100644 --- a/recipes/toggl/webview.js +++ b/recipes/toggl/webview.js | |||
@@ -1 +1,11 @@ | |||
1 | module.exports = Ferdi => Ferdi; | 1 | const _path = _interopRequireDefault(require('path')); |
2 | |||
3 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
4 | |||
5 | module.exports = Ferdi => { | ||
6 | const updateBadge = function updateBadge() { | ||
7 | Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js')); | ||
8 | }; | ||
9 | |||
10 | Ferdi.loop(updateBadge); | ||
11 | }; | ||