aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/toggl/webview.js
diff options
context:
space:
mode:
authorLibravatar Nils Steinger <n-st@users.noreply.github.com>2021-11-20 21:49:47 +0100
committerLibravatar GitHub <noreply@github.com>2021-11-21 02:19:47 +0530
commitada14e8b8e45d6246bd8b7b273c044b215365377 (patch)
tree3ae5d0aad645b8705be3c7dce3a2b1cb37e233c6 /recipes/toggl/webview.js
parentRevamped github Issue templates (new yml syntax) [skip ci] (diff)
downloadferdium-recipes-ada14e8b8e45d6246bd8b7b273c044b215365377.tar.gz
ferdium-recipes-ada14e8b8e45d6246bd8b7b273c044b215365377.tar.zst
ferdium-recipes-ada14e8b8e45d6246bd8b7b273c044b215365377.zip
Toggl recipe: Display 'unread' badge when a timer is running (#767)
Diffstat (limited to 'recipes/toggl/webview.js')
-rw-r--r--recipes/toggl/webview.js12
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 @@
1module.exports = Ferdi => Ferdi; 1const _path = _interopRequireDefault(require('path'));
2
3function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
4
5module.exports = Ferdi => {
6 const updateBadge = function updateBadge() {
7 Ferdi.injectJSUnsafe(_path.default.join(__dirname, 'webview-unsafe.js'));
8 };
9
10 Ferdi.loop(updateBadge);
11};