diff options
author | Adinda Praditya <apraditya@gmail.com> | 2022-11-10 21:57:29 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 14:57:29 +0000 |
commit | 5d1e571a16d9b16d2b90c66041b94bf238d9793b (patch) | |
tree | 6acdc5102fb44b712987e64a020ea4c0c1af7720 /recipes/pocketcasts/webview.js | |
parent | Added 'webview.js' as a mandatory file and fixed broken recipes (diff) | |
download | ferdium-recipes-5d1e571a16d9b16d2b90c66041b94bf238d9793b.tar.gz ferdium-recipes-5d1e571a16d9b16d2b90c66041b94bf238d9793b.tar.zst ferdium-recipes-5d1e571a16d9b16d2b90c66041b94bf238d9793b.zip |
Add new recipe: PocketCasts (#226)
Diffstat (limited to 'recipes/pocketcasts/webview.js')
-rw-r--r-- | recipes/pocketcasts/webview.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes/pocketcasts/webview.js b/recipes/pocketcasts/webview.js new file mode 100644 index 0000000..5c033a2 --- /dev/null +++ b/recipes/pocketcasts/webview.js | |||
@@ -0,0 +1,16 @@ | |||
1 | const _path = _interopRequireDefault(require('path')); | ||
2 | |||
3 | function _interopRequireDefault(obj) { | ||
4 | return obj && obj.__esModule ? obj : { default: obj }; | ||
5 | } | ||
6 | |||
7 | module.exports = Ferdium => { | ||
8 | // TODO: If your Pocket Casts service has unread messages, uncomment these lines to implement the logic for updating the badges | ||
9 | // const getMessages = () => { | ||
10 | // // TODO: Insert your notification-finding code here | ||
11 | // Ferdium.setBadge(0, 0); | ||
12 | // }; | ||
13 | // Ferdium.loop(getMessages); | ||
14 | |||
15 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
16 | }; | ||