diff options
author | vantezzen <hello@vantezzen.io> | 2020-05-10 10:41:55 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2020-05-10 10:41:55 +0200 |
commit | d69e514dceb46a02cca4b73ea4fea487b93d71ad (patch) | |
tree | 34bf182e0a28d784f3e7d321d41ef330b347d0e4 /scripts/sample_recipe/webview.js | |
parent | Update agent agent configuration (diff) | |
download | ferdium-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.js | 15 |
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 | |||
3 | var _path = _interopRequireDefault(require("path")); | ||
4 | |||
5 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
6 | |||
7 | module.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 | }; | ||