aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/sample_recipe/webview.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-05-10 10:41:55 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2020-05-10 10:41:55 +0200
commitd69e514dceb46a02cca4b73ea4fea487b93d71ad (patch)
tree34bf182e0a28d784f3e7d321d41ef330b347d0e4 /scripts/sample_recipe/webview.js
parentUpdate agent agent configuration (diff)
downloadferdium-recipes-d69e514dceb46a02cca4b73ea4fea487b93d71ad.tar.gz
ferdium-recipes-d69e514dceb46a02cca4b73ea4fea487b93d71ad.tar.zst
ferdium-recipes-d69e514dceb46a02cca4b73ea4fea487b93d71ad.zip
Add create script
Diffstat (limited to 'scripts/sample_recipe/webview.js')
-rw-r--r--scripts/sample_recipe/webview.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/sample_recipe/webview.js b/scripts/sample_recipe/webview.js
new file mode 100644
index 0000000..ddd0b40
--- /dev/null
+++ b/scripts/sample_recipe/webview.js
@@ -0,0 +1,15 @@
1"use strict";
2
3var _path = _interopRequireDefault(require("path"));
4
5function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
6
7module.exports = Ferdi => {
8 const getMessages = function getMessages() {
9 // TODO: Insert your notification-finding code here
10 Ferdi.setBadge(0, 0);
11 };
12
13 Ferdi.loop(getMessages);
14 Ferdi.injectCSS(_path.default.join(__dirname, 'service.css'));
15};