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