diff options
author | 2020-10-20 04:01:27 -0700 | |
---|---|---|
committer | 2020-10-20 12:01:27 +0100 | |
commit | 6e4cfcd065688c25c5e11db5036ead94dc5a0136 (patch) | |
tree | cf2b8c13150a5782611d9127be9bb064df9837d0 /recipes/sync/webview.js | |
parent | Fix messages count for Fastmail (#335) (#336) (diff) | |
download | ferdium-recipes-6e4cfcd065688c25c5e11db5036ead94dc5a0136.tar.gz ferdium-recipes-6e4cfcd065688c25c5e11db5036ead94dc5a0136.tar.zst ferdium-recipes-6e4cfcd065688c25c5e11db5036ead94dc5a0136.zip |
Add recipe for Sync.com (#337)
Diffstat (limited to 'recipes/sync/webview.js')
-rw-r--r-- | recipes/sync/webview.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/recipes/sync/webview.js b/recipes/sync/webview.js new file mode 100644 index 0000000..5bb7741 --- /dev/null +++ b/recipes/sync/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 | // Sync.com does not provide notifications at this time. | ||
10 | Ferdi.setBadge(0, 0); | ||
11 | }; | ||
12 | |||
13 | Ferdi.loop(getMessages); | ||
14 | Ferdi.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
15 | }; | ||